/usr ----- installed software, shared library
The subdirectories are: ./usr/bin /usr/sbin /usr/local
/etc ------ The configuration file of this system
/var ------ dynamically change files, caches, log files, databases, printer documents and website content
/run ------ Run the file
/home------ The location where ordinary users store their personal data and configuration files
/root------ Manage the home directory of the super user
/tmp----- temporary file /var/tmp
/boot----- Files needed during the boot process
/dev------- special device file for the system to access the hardware
User switch: so harry su natasha switch root sudo -i
date-------Display the current date and event
date +%r------24-hour system display date
file /etc/passwd ------scan file type, whether it can be read
wc /etc/passwd -file name-------display the number of script lines, words, and characters in the file
wc -l wc -w wc -c
head -n number of lines -------how many lines of the first page
tail -n number of lines ----------- the last few lines
cat /etc/passwd---- -----Display file attributes
cat /etc/group ------View user list
pwd ----------Display the full path name of the current directory
cd videos- ------ switch the current directory
ls------------List the contents of the established directory, if not established, list the contents of the previous directory
ls -la----------Display hidden files
ls -r------------recursively, including the contents of all subdirectories
ls -l----------long list format
ls -al--------Display all directories under root
ls -ld *---------List all items in the current directory? List all files
ls -ld */ only lists the session directory
mkdir-------create sub-directories can be created in batches
touch------Create files, you can create files in batches
mv-----------Move the source file to the target subdirectory
cp -r -------- copy the source file to the target subdirectory
rm -r ----------Delete subdirectories and their contents
rm --------------Delete files without deleting subdirectories
rmdir------------Delete subdirectories (provided that the directory is empty)
cd / directory name -------------return to the superior directory
mv source file name new file name - ----------- modify file name
ln -s target source file link path-----------different files create soft links
ls -lR home directory/ -------------------recursively display this directory and path
touch --------------File name {1..2} File name {1..6} Add movies in batch
Use touch to create 8 files in batches and use * to view
mkdir -p ----------------Create a two-level directory directly
mkdir --------------------Create multiple child and mother directories in the specified directory
ls ../ directory
/usr ----- installed software, shared library
The subdirectories are: ./usr/bin /usr/sbin /usr/local
/etc ------ The configuration file of this system
/var ------ dynamically change files, caches, log files, databases, printer documents and website content
/run ------ Run the file
/home------ The location where ordinary users store their personal data and configuration files
/root------ Manage the home directory of the super user
/tmp----- temporary file /var/tmp
/boot----- Files needed during the boot process
/dev------- special device file for the system to access the hardware
User switch: so harry su natasha switch root sudo -i
date-------Display the current date and event
date +%r------24-hour system display date
file /etc/passwd ------scan file type, whether it can be read
wc /etc/passwd -file name-------display the number of script lines, words, and characters in the file
wc -l wc -w wc -c
head -n number of lines -------how many lines of the first page
tail -n number of lines ----------- the last few lines
cat /etc/passwd---- -----Display file attributes
cat /etc/group ------View user list
pwd ----------Display the full path name of the current directory
cd videos- ------ switch the current directory
ls------------List the contents of the established directory, if not established, list the contents of the previous directory
ls -la----------Display hidden files
ls -r------------recursively, including the contents of all subdirectories
ls -l----------long list format
ls -al--------Display all directories under root
ls -ld *---------List all items in the current directory? List all files
ls -ld */ only lists the session directory
mkdir-------create sub-directories can be created in batches
touch------Create files, you can create files in batches
mv-----------Move the source file to the target subdirectory
cp -r -------- copy the source file to the target subdirectory
rm -r ----------Delete subdirectories and their contents
rm --------------Delete files without deleting subdirectories
rmdir------------Delete subdirectories (provided that the directory is empty)
cd / directory name -------------return to the superior directory
mv source file name new file name - ----------- modify file name
ln -s target source file link path-----------different files create soft links
ls -lR home directory/ -------------------recursively display this directory and path
touch --------------File name {1..2} File name {1..6} Add movies in batch
Use touch to create 8 files in batches and use * to view
mkdir -p ----------------Create a two-level directory directly
mkdir --------------------Create multiple child and mother directories in the specified directory
ls ../directory name--------------Display the contents of the specified directory
man -k boot/ext/man/zip -------------Find related information
Whereis man---------------------Find the binary files, source code, manpage, etc. located in the /usr/share/man directory
Name--------------Display the content of the developed directory
man -k boot/ext/man/zip -------------Find related information
Whereis man---------------------Find the binary files, source code, manpage, etc. located in the /usr/share/man directory