Basic Linux commands and Linux commands
Compression and decompression commands
Compression: tar-zcvf appName.tar.gz. date appFileName (for example, tar-zcvf rc.tar.gz. 0513 rc)
Decompress: tar-xvf tarFile
Tar command details:
Tar package compression;
Common Linux commands (28th) and common linux commands
The diff command is an important tool in linux. It is used to compare the content of files, especially files of different versions, to find the changes. Diff prints the changes of each line in the command line. The lates
Linux basic commands (2) commands on disk space, linux disk spaceDisk Space commands
Command
Function
Mount
Mount a File System
Umount
Detach a mounted file system
Df
Check the disk space of each hard disk partition and mounted
One, the Linux CPU sizeCat/proc/cpuinfo |grep "model name" cat/proc/cpuinfo |grep "Physical ID"Description: Detailed information about each CPU can be seen in/proc/cpuinfo under Linux. But for a dual-core CPU, you will see two CPUs in the Cpuinfo. It is often mistaken for a two single-core CPU.You should actually differentiate between single-core and dual-core by physical Processor ID. The physical Process
Common Linux commands (22) and common linux commands
The chmod command is used to change the access permissions of linux system files or directories. Use it to control access to files or directories. This command can be used in two ways. One is the text setting method that c
2. Common Linux operation commands (1) and linux operation commands
BASH: It is the GNU Bourne Again Shell, which is the default Shell on the GNU operating system.
Bourne Shell: Shell developed by Bell lab.
Korn Shell: It is the development of the Bourne Shell and is compatible with the Bourne Shell in most aspects.
C
Common Linux commands and common Linux commands
If some commands are not commonly used, you can't remember them. Every time you use them, you need to query them. Here we record some commands:
(1) tar
Decompress:
Tar-xvzf filename.
Linux executes multiple commands consecutively and linux Multiple commandsIf each command is separated by ";", the next command will be executed no matter whether the command at the front is successfully executed or not.Here, the echo in the second command is intentionally written to one o, and the command execution error does not affect subsequent command execut
Summary of several functions similar to Linux commands and summary of Several linux commands
The wc command is used to count the number of lines, characters, and bytes of text in the format of wc [parameter] text ".
-L only displays the number of rows
-W: only display the number of words
-C: only display the number of
Common Linux commands (8) and common linux commands
Linux touch commands are not commonly used. They are generally used to modify the file timestamp or create a new file that does not exist.
1. Command Format:
Touch [Option] File
Share file commands in Linux and view commands in linux
In linux, the command for viewing log file content includes:
Cat displays the file content starting from the first line. tac is displayed from the last line. It can be seen that tac is the line number output when cat i
first, and configuration file help is the fifth. ViewUse man 5 passwd to help with the passwd configuration file6. View help info [any keyword]Linux and UNIX7. Obtain the role of the short Index Command and the location of the command (brief information) whatis-- Help: Only LIST Command OptionsApropos [configuration file] is equivalent to man-KWhen you use whatis and apropos, you need to use the index database. If an error occurs when you use these t
, RM; Execute permissions x: CD2. Change the file owner: ChownCommand name: Chown Command English Original: Change file ownership command path:/bin/chown Execute permissions: All user syntax: chown [user] [file or directory] function description: Changes the owner of the files or directories3. Change the owning group of the file or directory: ChgrpCommand name: CHGRP Command English Original: Change file group Ownership command path:/BIN/CHGRP Execute permissions: All user syntax: chgrp [user] [
created mkdir-p shandong/heze/danxian/yanglouzhen/liuzhaicun/t/t for recursion13. Tree Shandong View trees structure, directory organization14, man view the command's document command--help simple view Help15. Help command to view Linux built-in commands16. grep Find Code17, Tar zcvf demo.tar.gz Linux.log demo own definition name, tar.gz usual habit Linux.log will pack into demo.tar.gz18, sz demo.tar.gz download package19. Df-h Disk Utilization20, Du
Common commands in linux and Common commands in linux
Common commands in linux. We should first learn some very basic commands, but the usage is very high. Otherwise, the subsequent cou
Common Linux commands (20) and common linux commands
When you use the-exec option of the find command to process matched files, the find command passes all matching files to exec for execution. However, some systems have limits on the length of commands that can be passed to
Help for common linux commands and help for common linux commands
Command name: man
Purpose: help information of commands and configuration files (no absolute path is required)
Mainly view the name and search parameters
There are several types of help: 1. Command help. 5
Common Linux commands (6) and common linux commands
The mv command is short for moving files. It can be used to move files or rename files. It is a common command in Linux and is often used to back up files or directories.
1.Command Format:
Mv [Option] source file or direct
Common Linux commands (4) and common linux commands
The linux mkdir command is used to create a directory with the specified name. The user who creates the directory must have the write permission in the current directory, and the specified directory name cannot be an existi
Linux-related decompression commands and linux decompression commands
ZIP
We can use the following command to compress a directory:
# Zip-r archive_name.zip directory_to_compress
Below is a zip file:
# Unzip archive_name.zip
TAR
Tar is a widely used document packaging format in Lin
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.