First of all, how to get the help of command, in general, the command has four channels, can also be understood as four methods,
1, internal command input directly: Help command
2, external command can be entered: command--help
3, view command manual: Man (Manual)
and our command manual can be divided into 8 chapters to view,
1: User command/bin/usr/bin/usr/local/bin
2: System call
3: library Call
4: Special Documents
5: File format
6: Game
7: Miscellaneous
8: Management Command/sbin/usr/sbin/usr/local/sbin
4, online Documentation: INFO COMMAND
Second, introduce the function and content of each directory of Linux file system.
/boot: System boot-related files such as kernel, INITRD, and Grub (bootloader bootloader)
/dev: Device files
Device files: Block devices: Random access such as hard drives
Character device: Linear Access such as monitor, keyboard, mouse
/etc: Configuration file
/home: User House directory, default is/home/username
/root: Admin Home Directory
/lib: library file
Library files: Static library files such as Linux below. A
Dynamic library files such as the. dll below Windows and. So (Share object) under Linux
/lib/modules: Kernel module files
/media: mount point directory is typically a mobile device
/MNT: mount point command is typically an additional temporary file system, such as adding a new hard disk
/misc; miscellaneous
/OPT: Optional Directory
/proc: Pseudo file system, is the system kernel mapping file, the system is automatically created after opening the system
/sys: Pseudo file system, hardware-related property mapping file
/temp: This does not explain
/var: a variable file
/bin: Executable file or command
/sbin: Managing Commands
/usr:unit Share Read-only
Describe the naming rules for Linux:
1. File length cannot exceed 255 characters
2. Cannot use/when file name
3. Strictly case-sensitive
Describe common commands for Linux file management:
1, create the directory: mkdir common options-p-v
2. Delete Empty directory: rmdir common option-p
3. Create a file: Touch modify timestamp common options-m-a-t-c of course, creating files can be created in the file editor
4. Display file information: Stat
5, delete files: Rm-f means to forcibly delete and do not prompt
-R means recursive delete
Rome cold Day, hope to progress a little bit every day.
This article from the "Spring" blog, reprint please contact the author!
Linux Basic Command Learning