Linux basic entry commands (1)

1. Ifconfig view the network configuration of the system
2.ls (list):
a. View which files or folders are in the current directory
b. Common directories:
~: refers to the user's home directory in the current Linux operating system
/: in The current Linux operating system refers to the root directory
c. Common usage:
ls[path]:
ls. "." represents the current directory
ls… "..." represents the parent directory
ls -l is abbreviated as ll : view the properties of a file or folder
ls -a: You can view hidden files or folders.
ls -lrt: Display the last modified files or folders at the bottom, sorted by modification date
3.cd:
a. Switch directories
b. Common usage
cd [path ]: cd absolute / relative
** absolute path: ** counted starting from the root directory path to a folder experienced a
relative path: with or "...". "" begin to calculate a path to a folder experienced , When writing, it is equivalent to the current directory
~: cd ~: use cd ~ to switch to the home directory
/: cd /: use cd / to switch to the current user's root directory
cd -: switch back to the previous location Directory
4.touch:
a. Create a text file (ordinary file)
b.touch [filename]
c.touch + multiple filenames
d.touch relative path/[filename]
touch absolute path/[filename]
5. mkdir:
a. Create a folder
b. mkdir[foldername]
mkdir relative path/[foldername]
mkdir absolute path/[foldername]
c.mkdir -p[foldername]/[foldername]/[foldername] Create a multi-level folder directory

Guess you like

Origin blog.csdn.net/qq_45657288/article/details/105894721