- sudo passwd: Set the password under root
- mkdir: Creating a Folder
- Clear: Clears the terminal's screen
- Cd. : Current directory
- Cd.. : Parent Directory
- RM: Delete file (rmdir: Delete directory)
- Touch: Create a file (Lg:touch a.txt)
- CP: Copying Files (lg:cp a.txt b.txt)
- MV: Moving files (can also be renamed as files)
- Cat: View file contents (Lg:cat a.txt)
- Echo: Output write content to Terminal (also: echo Hello >> a.txt, i.e. output hello to a.txt, where >> is redirected and append mode, > Redirect and overwrite mode)
- grep: Filtering (lg:find ~ | grep. txt, that is: Remove all txt end files in the current directory, |: Pipe character)
- GZIP: In situ compression (Lg:gzip a.txt)
- Gunzip: In-situ decompression (Lg:gunzip a.txt.gz)
- Tar: Extracting files
- sudo mount:iso mirroring Mount
- Ps-af | MORE: Show All process information (press Q to Exit view)
- ls: Query directory under File (Ls-al: Formatted display)
- chmod: Change the permissions of a file (Lg:chmod a+w a.txt means that everyone has a.txt Write permission chmod 777 a.txt that all permissions are available for a.txt)
- sudo apt-get install xxxxx: Installing software Online
- sudo apt-get remove xxxxx: Uninstalling software
- sudo dpkg-l | grep XXX: Check if the XXX software is installed
- sudo dpkg-i xxxxxxx.deb: Install the Deb end of the package
- sudo apt-get install-f: Resolves the dependencies of the package so that the installation can continue
- TAR-XZVF xxxxxx: Unzip the. tar.gz End of the package
- echo $XXX: Print environment variable (lg:echo $PATH)
- Ln-s: Creating Symbolic Links (lg:ln-s/mnt/hgfs\shared/hadoop_jar _hadoop)
- SCP: Remote copy (lg:scp-r/etc/hosts [email protected]:/etc/(-r = recursive copy))
- SSH: Telnet (lg:ssh 192.168.160.137)
- STARTX: Start the graphical interface
- ./eclipse &: Background launch eclipse (foreground can still enter other commands with terminal)
- Jobs: Query The job number of the background running process
- CTRL + Z: Pausing a process running in the background
- BG%i: The process of suspending the job number I is running in the background
- FG%i: The process for background job number I is placed in the foreground
- Unzip: Unzip the ZIP archive package
- Nice-n -10./job.sh: When you start the job.sh script, set his priority to 10 run
- Renice-10-p 514: Reset Process 514 with a run priority of 10
Linux Common Command Summary