Linux Common Commands

Source: Internet
Author: User

The role of the common root directory  boot storage for the system boot use of various files bin storage binary executable file (Ls,cat,mkdir, etc.) sbin storage binary executable file, only root to access USR for system applications, more important directory/ Usr/local Local Administrator software installation directory opt for additional installation of optional application packages placed in location etc Store System Profile Home store all user files in the root Lib repository and the kernel module TMP required to run the program in the file system For storing various temporary files Var is used to store files that need to change data at runtime installation point of the MNT installation temporary file system   Common Operations Command  pwd (not password print work directory) displays the current directory ls or dir Displays the file under the current directory ll displays the files under the current directory (details) CD switch working directory./test switch to the test directory in the current directory. /switch to the top level directory/switch to the root directory mkdir (make directory) new directory some system directories do not have permission to create, generally create rmdir (remove directory) in the name of their own users, remove the empty directory  rm ( Remove) Delete the file or directory rm-r delete directory and all files under it (R is recursive) MV Mobile file format with CP copy file format: CP to which directory to copy the file name to copy cat view text file content (all at once, for small files) more paging Show Q Exit Find-name ' A * ' to find all files starting with a in the current directory (including folders in folders) PS View the currently running Process PS-EF View all running processes (including system processes) reboot restart Shutdown-now immediate shutdown exit exit Terminal Clear Screen Tar Package folder into a file (compressed) sudo with Super Administrator execute command apt-get Install Program name Installer apt-get Remove Program name uninstall program Ifconfig View network configuration information (see IP)   VI Editor to edit some text vi file name can enter the VI editor, if not the file is automatically created into the command mode, press I key into the insertion mode (can be entered and modified), press ESC to return to the command mode, press: Key to enter the last line mode (exit, save, etc.), Automatically returns command mode   last line mode instruction after execution WqSave after Exit  w (write) save does not exit  q (quit) Exit  q! Do not save exit   Command mode instruction  shift+^ move to the beginning of the line  shift+$ move to the end of the row ctrl+b scroll one screen ctrl+f   scroll down one screen dd Delete current line x Delete current one word u undo o Add a line   Besides VI, there's a better editor called Nano.

Linux Common Commands

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.