mkdir Creating a Folder
Touch Create File
Files and folders under Windows are case insensitive
Files are strictly case- sensitive under Linux
. Represents the current directory
.. Indicates a parent directory
. The file that starts with indicates that the file is a hidden file
Important Folder Description
For the root user,
When I landed, it was a sign.
its root directory is /root
For non-root users
when you log in, it shows the $
its root directory is in /home/user
Directory Operations
Cd.. Parent Directory
PWD Displays the directory where you are currently
CD ~ Return to the current user's more directory (root user returned to/root directory non-root returned to/home/user)
CD-Switch between the last operation and the directory node for this operation
File operations
Copy
CP [Options] File destination Copy file to the specified directory
Nothing in options specifies that the newly created file timestamp is the most recent specified-p then the timestamp of the copied file remains unchanged
Cp-r dir1 dir2 Copy files under File Dir1 folder to file Dir2 directory
Move or rename
MV Cat dog renames cat files or folders to dog
MV Cat dog/move cat files or folders to dog
Delete
RM [Options] File Delete files
Rm-r file/Delete all files need to be confirmed.
RM-RF file/does not need to be confirmed and removed directly.
Confirm File Type
File filenames
Open File
Cat [Options] Filenames
-B can display the travel number when the file is large
Less [options] filenames
Open the file after the PageUp PageDown can also use the G page to the front G to the last
Search for n backward find n forward Lookup
Q exit
Linux Learning-File system architecture