Manual
To check the manual for a command, you can use the man
command
File/Folder
Basic Operations
File Permission Commands
drwxr-xr-x
-
d
: The first character represents the file type. In this case,d
means it's a directory. If it was a file, this character would be-
. -
rwxr-xr-x
: The next nine characters represent the file permissions, divided into three groups of three:-
rwx
: The first group of three characters (after thed
) shows the permissions for the owner(the user who owns the directory or file).
r
means the owner has read permission.w
means the owner has write permission.x
means the owner has execute permission (for a directory, this means the owner can list its contents).
-
r-x
: The second group represents the permissions for the group(other users who are part of the fileโs group).
r
means group members can read the file/directory.-
means group members cannot write to the file/directory.x
means group members can execute the file or access the directory.
-
r-x
: The third group shows the permissions for others(everyone else).
r
means others can read the file/directory.-
means others cannot write to the file/directory.x
means others can execute the file or access the directory.
-
Vim
:w
- Save the file (write changes to disk).
:q
- Quit Vim.
:wq
- Save the file and quit Vim.
:q!
- Quit without saving changes.
0
(zero) - Move to the beginning of the current line.
$
- Move to the end of the current line.
dd
- Delete the current line.