Linux Basics Linux Common Operations Command __linux

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.