File and directory operations in Linux 01 "Simple Record"
?
- Related Operations for Directories
. Represents this Layer directory
.. Represents a previous level directory
- Represents a previous working directory
~ Represents the home folder where the current user identity resides
~account represents the user's folder (account name)
To switch accounts:
?
?
command example:
Command |
Role |
Cd: |
Switch directories |
Pwd |
Show current directory pwd–p get the correct directory name |
Mkdir |
Create a new directory, Mkdir-p Test1/test2/test3/test4 Creating a multilevel directory |
RmDir |
Delete an empty directory |
Rm |
Delete Entire Directory Rm–r Test |
Mv |
Files can be moved between different directories |
?
- Path variable: $PATH
Echo $PATH
?
IFCONIFG: Querying IP addresses
:
:
?
?
?
?
- CHGRP: Change the user group that the file belongs to;
- Chown: Change the file owner;
- chmod: Changing the permissions of a file
?
I. Change the owning user group: CHGRP
?
File and directory operations in Linux 01