I. Graphic Interface related commands 1. system settings
Setup
2. Service Startup settings
Ntsysv
3. Logon Settings
Gdmsetup
Gdmconfig
4. Network Settings
Networkconfig
Thizconfig
5. Volume Control
Gnome-volume-control
6. KDE Control Center
Kcontrol
7. KDE setting wizard
Kpersonalizer
8. network detection commands
Xmtr
II. Information Display command
1. display the time consumed and system resources for executing specific commands.
Time
2. display or set the system date and time
Date
If it does not start with a plus sign, the time is set, and the time format is mmddhhmm [[CC] YY] [. SS], where mm is the month, DD is the day, HH is the hour, mm is the minute, CC is the first two digits of the Year, YY is the second digit of the Year, SS is the second digit
# Date 081112552006.35
3. Display calendar
Cal
# Cal-m
# Cal-S
# Cal 2006
# Cal 08 2006.
4. uptime
Provide the information below the user, without other parameters
Current Time
How long has the system been running?
Number of connected users
System load in the last minute, five minutes, and fifteen minutes
Parameter:-V displays version information.
# Uptime
5. Last
Displays the system logon information since the system is started or from the beginning of each month.
# Last
6. dmesg
Display System Startup Information
7. uname
Display System Information
-M: displays the hardware model.
-N: display the Host Name
-R: displays the kernel version.
-S: displays the operating system type
-V: displays the operating system version.
-A: All information is displayed.
8. ID
Displays real and valid UID and GID
# ID: displays the ID of the current user
9. hostname
Display or set the Host Name of the system
-A: displays the host alias.
-D: Display DNS domain names
-F Read the host name from the specified file
-I: displays the IP address of the host.
10. Who or W
Show online login users
-Q: display all logon names and logon count
# W display information of the current user in the system
# W User Username only displays information of the specified user
11. whoami
Display the user's identity
12. Whois
Query domain name registration and IP address information
# Whois www.sina.com.cn
TIPS: If you want to register a domain name, you can use the WHOIS tool to check whether someone has registered it.
13. Whatis
View command explanation
# Whatis ls
14. whereis
Display the directory of system commands and their documents
# Whereis ls
15. Which
Display the directory of the system command
# Which ls
16. Stat
Displays information about the specified file (including the node content)
# Stat-F/view the entire file system
17. Free
Display current memory and swap space usage
-B is in bytes.
-M in MB
18. Du
Displays the total disk space used by the specified file or directory.
-A displays statistics on all files (including subdirectories)
-B: the output result is in bytes.
-C: calculate the total usage of directories only.
-H in the unit of M 1024kb = 1 m
-H, in MB, 1000kb = 1 m
-S only displays the total space used by the Directory
19. DF
Displays the disk space usage of the file system.
-H is calculated as kb = 1 MB
-H is calculated as 1000kb = 1 Mbit/s.
-T indicates the type of the display partition.
-I: displays inode usage of partitions.
20. WC
Counts the number of bytes, number of words, and number of rows in the specified file, and displays the result.
-C: Number of output bytes
-L number of output line breaks
-L the maximum length of the output row
-W output word statistics
21. ls
Show directory files
-A: displays all files (including hidden files)
-L display in long format
-F attaches the file category as a symbol
-R: Display directory content in a tree structure
-D. view directory properties.
-I: displays the inode number of each file.
-M all items are separated by commas and the entire line is filled.
-H will list the file size and humanized format output
-T list file names in the order of last file modification time
-- Color display file
22. Cat
Show Text File Content
-B: number of lines displayed when the file content is displayed
-N: The displayed file contains blank lines.
-S combines multiple empty rows into one empty row output
23. TAC
Reverse display of file content, followed by rows in front
Same as above
24. Head
Display the first several lines of a text file
-N (number of rows): displays the last specified row of the file
-B (number of bytes) shows the content in the last number of bytes of the file
-Q: No output of file header content
-V output file header content
25. Tail
Display the last several lines of a text file
Same as above
26. More or less
Display text file content by PAGE
-S compresses multiple empty rows into one empty row
-P: After the screen is clearly displayed
+ The number of rows is displayed directly from the specified number of rows.
-Number specifies the number of rows to be displayed each time
27. Cut
Displays the text of each row starting from num1 to num2.
# Cat Example
Test2
This is test1
# Cut-c0-6 example # the first 6 characters starting with print
Test2
This I
28. pwd
Display current working directory
29. locale
Display current language environment
30. FC-list
List System Fonts
31. Jobs
View the background processes of the current terminal and Shell
32. Ps
View PROCESSES IN THE SYSTEM
# Ps aux
# Ps-elf
33. pstree
Display All itineraries in a tree chart
34. Top
View Real-Time Processes in the system
35. Set
View System Variables
36. Export
View environment variables
37. Man
View Command help information
38. Info
View Command help information
39. Help
View Command help information 3. File Processing commands
1. File
Display file type
2. mkdir
Create directory
-P: create directories in sequence (create multi-level Directories)
-M specifies the directory permission
3. grep
Search for the specified string in the specified text file
4. dd
Conversion and output data
# Dd If =/dev/hda of =/dev/HDB hard disk copy
5. Find
Search for files or directories
-Name: searches based on the specified file name.
Example: # Find.-Name "*. c" (list all files with the c extension in the current directory and Its subdirectories)
-Type: searches for objects of the specified type.
Types of files include:
L Link
D directory
F Common File
Block B Device Files
C character Device File
S socket (socket file)
P pipeline (PIPE) File
Example: # Find ~ -Type D
-Size N [BC]: searches for files with N values. The default unit is byte.
B = bit
C = KB
Example:
# Find ~ -Size 1500b
# Find ~ -Size + 1500b
Search for files larger than MB
# Find ~ -Size-1500b
Search for files smaller than MB
-User: searches for files belonging to the specified user.
# Find/-user test
-Group: searches for files belonging to the specified user group.
# Find/-group test
-Newer: searches for files updated compared to files.
# Find/-newer/home/httpd
-Cmin + N: searches for files that have been modified in the past n minutes (-) or other than (+ ).
# Find ~ -Cmin + 20
-Ctime + N: searches for files that have been modified in the past n days (-) or other than (+ ).
# Find ~ -Ctime + 20
-Atime + N: searches for files that have been read in the past n days (-) or other (+ ).
# Find ~ -Atime + 20
-Amin + N: searches for files that have been read in (-) or other (+) within the past n minutes.
# Find ~ -Amin + 20
-Links N: Search for N files with the number of links
# Find/home-Links [2-5]
6. mv
Change the name of a file or directory
-I Prompt
-V display progress
-F force move
-U is moved only when the source file is earlier than the target file.
7. Diff
Compare and display the file differences
8. Comm
Compare file content
9. ln
Create links between files
-S symbolic link Option
-F force link Creation
-I Prompt
-V: Show operation information
10. rm
Delete a file or directory
-R recursive Deletion
-F force Delete
-V display information when deleting
-I will prompt confirmation when deleting
11. rmdir
Delete empty directory
-P: delete directories in sequence
-V display information when deleting
12. CP
Copy a file or directory
-R Recursively copies contents in the entire directory
-F force copy
-P: Keep the permission value of the directory after copying
-I. A message indicating the same name appears during replication.
-V display progress
-L create a hard link
-U can be copied only when the target file is older than the source file
13. CD
Switch directory
# Cd return to the user's home directory
# Cd-Return to the user's home directory
# Cd ~ Return to the user's home directory
# CD .. go to the upper-level directory
# Cd/switch to the root directory
# Cd. Switch to the current directory
14. Tar
-F indicates that archive files are used.
-V display progress
-C create a new tar file
-Z: Call the gzip or gunzip Program
-J: Call the Bzip2 or bunzip2 program.
-T display the content in the TAR package file
-X decompress the tar file
-R: append one or more files to the existing tar package.
-U if the file is newer than the package file, replace the package file.
-K keeps the original file when unpackaging the file
-C: Specify the target directory for unpacking
-A: append the files in other packages to a package file.
-M divides a package into multiple packages, but must be used together with the-l parameter (the subcontracting implementation process is troublesome)
-- Get: Extract an object
-- Remove-Files: delete files after Packaging
-T to test and decompress the package. The package will not be decompressed to the current directory.
Format:
Tar [Option] generate the source file to be packaged with the package file name
15. Compress
Compress the command to generate a. Z File
16. uncompress
Decompress the file with the extension. Z.
17. Zip
Compressing files or directories
18. Unzip
Uncompress a file named. Zip
19. Gzip
Compress the command (do not support compressed contents to generate .gz files)
20. gunzip or zcat
Decompress the .gz File
21. Bzip2
Compress the command to generate the. bz2 File
22. bunzip2
Extract command
23. Touch
Change the time mark of the file or create an empty file
24. Unlink
Delete soft link
25. Locate
Search for files containing strings in the system
26. LDD
List file-related sharing function libraries
Iv. system management commands
1. Clear
Clear Interface
2. konsole
Open command Terminal
3. gnome-Terminal
Open command Terminal
4. fdisk
Modify Disk Partitions
M help
L print known partitions
D. delete a partition.
N create a new partition
P print the current Partition Table
W write the new partition table to the disk and exit
T changes the System ID of a partition.
Q: quit saving and quit
Example: # fdisk/dev/hda
# Fdisk-l
5. mkfs
Disk formatting Tool
After you type mkfs, press the tab twice to display many formatting tools.
6. fsck
Detect and repair the file system in single-user mode
For example:
# Fsck-J/dev/hda1
Note: We recommend that you do not manually use fsck, which will be automatically called by the system.
7. Quota
Display and limit user disk usage
8. quotacheck
-A checks all non-network file systems based on/etc/mtab. (when the-a parameter is included, you cannot manually specify the partition to be checked)
-V shows the process and result
-U checks the partitions with the usrquota Parameter
-G: Check the partitions with the parameters of the maid.
-C: create databases aquota. USR and aquota. Group.
-M forces all partitions to be read and written.
-R: Check all partitions except root partitions.
# Quotacheck-avugc
9. quotaon
Start quota
-A. Open all disk quotas
-V: Display output results
-U specifies the user-Based Disk Quota
-G: Specifies the quota for opening a group-based disk.
-P: print the current status
10. quotaoff
Disable quota
Same as above
11. edquota
Configure the quota
-U User Name
-G group name
-T: Set the grace period.
12. repquota
View all quotas
13.
Execute a specific command at a specified time
14. ATQ
Query the tasks to be executed
15. atrm
Delete the task to be executed
16. crontab
Set scheduled tasks
17. lp
Print files
18. useradd
Create an account
19. usermod
Modify account settings
20. userdel
Delete account
21. groupadd
Create Group
22. groupmod
Change Group Identifier or name
23. groupdel
Delete Group
24. Kill
Signal the program or terminate the program
25. Nice
Execute the program with a changed priority
26. renice
Adjust the priority of the program being executed
27. wget
Download an object from a specified URL
28. md5sum
Calculate and verify the software's MD5 code
29. mesg
Control the write permission of the currently used Terminal
30. Wall
Broadcast Information
31. Write
Send information to other users
32. lpq
List the status of a printer queue
33. lprm
Delete a job that is being printed
34. Sleep
Pause Time
35. chfn
Change the information displayed by finger
36. CHSH
Change the shell used when users log on to the system
V. network operation commands
1. ifconfig
Set or display Network Interfaces
2. IFUP
Enable Network Interface
3. ifdown
Disable Network Interfaces
4. Ping
Sends an icmpecho package to check the online status.
5. netstat
Query the current status of the network
6. Route
Display and set routes
7. Traceroute
Track the connected vrouters
8. MTR
Is a command with both the Ping function and the traceroute function.
8. xmtr
Is a command executed in X Windows
9. tcpdump
Display the online status of TCP on the network
10. Telnet
Remote Online Program
11. FTP
File Transfer
12. rlogin
Remote Host Login
13. RCP
Remotely copy files or directories
14. SSH
Online remote Encryption
15. Finger
Remotely query user information on the host
16. Mail
Send and receive emails
17. Host
Query the domain name used by the host
18. NSLookup
Query the network name and address
Vi. system security commands
1. passwd
Change User Password
2. Su
Switch and replace the user's identity
3. sudo
Execute the program with the specified user permission
4. umask
Set the permission blocking for the new file.
5. chgrp
Change the group to which a file or directory belongs
6. chmod
Change file or directory permissions
7. chown
Change the owner or group of a file or directory
8. chattr
Change file attributes
9. lsattr
List file attributes on ext2
10. pswho
7. Other commands
1. BC
Calculator
2. xmms
Player
3. xine
PlayerLinux basic commandsHttp://cangqiong108.blog.51cto.com/517604/118241