Work needs to use SECURECRT to do some file operations on the server, more master some of the small Linux skills will be helpful to improve the efficiency.
Some common commands for SECURECRT are recorded here.
./Current Directory ... /parent Directory/root common commands
1. LS: Lists all file names at the current location (equivalent to Dir,dir also available)
-A: Lists all files, including hidden files.
-L: A list form that contains most of the attributes of a file.
–help: Help for this command
2. CD Change catalogue
CD/: Go to root directory
CD: Go back to your own directory (the user is different, the directory is different, root is/root,xxt for/home/xxt
Cd.. : Back to the parent directory
PWD: Displays the current directory
3. Less filename: View the contents of the file.
Tail-f Log name: View Log
4.: Q Exit Open File
5. RZ Select the file to transfer, OK.
6. SZ Specifies the filename, enter knock, that is downloaded to the Securecrt/download directory.
7. RM deletes the file, RmDir deletes the empty directory. Rm-rf forced deletion of non-empty directories
8. Recently entered 20 commands: History 20
9. When editing a file:
A switch to edit mode
CTRL + C Exit Edit mode
DD Deletes entire row
: W writes and saves the current file
-F forced xx parameter ...
10. Establish Soft Connection
Ln-s the target location to link to./Link Location
CP Replication Command
Cp.. /xxx/conf/filename./conf target Path
Cp- R.. /xxx/conf/folder name/*./conf destination Folder
MkDir Folder name Create Folder
RM Delete command
RM file name Delete a file
RM * Delete all files in the current directory
RM-RF folder name or path iteration Delete all files under this path with caution ...
Touch XXX Create a file named xxx
MV A B has the function of renaming a file as a B file in addition to frontline a files into B files.depends on whether there is a B file in the current directory
16.>And>>Use of
Both can create files. The former is overridden, and the latter is appended to the end of the file.Special Commands DecompressionUnzip-o-D target path compresses file 2.