How does secureCRT save certain commands or paths?

some paths are often used, so it"s too troublesome to enter them every time

May.06,2022

< H1 > about linux (non-secureCRT): < / H1 > < H2 > for commands: < / H2 >
  1. you can use history

    • use the up key or ctrl-p to quickly cut out previously executed commands (on the contrary, the reverse key or ctrl-n); use ctrl-r to search for previously executed commands
    • use the history command to view all historical commands. Each command is preceded by a label, such as 100 ls . You can use ! 100 to execute the command again; use ! to execute the previous command
    • again.
  2. if you want to simplify commands, you can use the alias function
    . For example, if you often type ls / a/b/c/ , you can add an alias: alias lsabc= "ls / a/b/c . Of course, if you only execute on the current terminal, it can only be valid on the current terminal
  3. .
< H2 > for paths < / H2 >
  1. use autojump
    there is a tool called autojump that specializes in all kinds of smelly and long paths. You can try using
  2. .
  3. use zsh
    the shell that comes with most linux distributions is bash. You can replace it with zsh with more features, and its path completion is very powerful
  4. Save common paths (not recommended)
    Save common paths as variables, such as abc= "/ a/b/c" , and then ls $abc . Similarly, if you only save on the current terminal, it can only be valid on the current terminal
  5. . The argument to the
  6. cd command can be -, which means entering the directory you entered last time, and this value is saved in the OLDPWD environment variable
  7. .
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4faa9-4d3e8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4faa9-4d3e8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?