Some LINUX commands learned today-general Linux technology-Linux technology and application information. The following is a detailed description. LINUX Command:
1. Enter mount directly to query the partitions Currently mounted.
2. fdisk-l displays partition usage
3. space occupied by the du-sh directory
4. uname-a: query the LINUX Version Number
5. Create a directory using mkdir
6. rm-r-f recursively deletes the directory without prompting
7. rmdir delete an empty directory
8. pwd query the current directory
9. Switch the cd directory
Ls
-A: All files, including hidden files
-L detailed, long format.
-R recursively display all directories and files
-D Non-recursion
10. more/less or CAT
11. Move music videos
12. cp-f Direct Overwrite-I prompt-R Recursion
Linux file type: LS-L
First column
Common files (-): text files and binary files
Directory file (D): folder
Connection file (L): The File Created by LN
Special files: Device File (B, C) C character settings, B block settings. And file management (P)
File Type Color configuration file:/etc/DIR-COLORS
FSCK disk repair
-F fstype: Specify the file system type to be checked
-N simulated display, not really checked
-The user is required to confirm the r recovery.
-P automatically fixes issues that are safely corrected and do not cause data loss.
Fsck-p-t ext2/dev/hda2
Note: You should uninstall the file system before checking.
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