- man
Used to see help/manual of a command.
Example:
man ls
- ls
Shows files and folders.
Example:
ls
- pwd
Shows current directory path.
Example:
pwd
- cd
Change directory.
Example:
cd Documents
- ls and ls -a
ls → normal files
ls -a → shows hidden files
Example:
ls -a
- ls -l
Shows detailed file info.
Example:
ls -l
- ls -al
Shows detailed + hidden files.
Example:
ls -al
- ls -alh
Shows size in KB/MB (easy to read).
Example:
ls -alh
- ls -alht Sort files from newest to oldest. Example: ls -alht
- ls -alhtr
Sort files from oldest to newest.
Example:
ls -alhtr
- ls -l --sort=time
Sort by time (newest first).
Example:
ls -l --sort=time
- ls -l --sort=time -r
Sort by time (oldest first).
Example:
ls -l --sort=time -r
- cd .. and cd .
cd .. → go one folder up
cd . → stay in same folder
Example:
cd ..
- cd / and cd ~
cd / → go to root directory
cd ~ → go to home directory
Example:
cd ~
- mkdir
Create a folder.
Example:
mkdir myFolder
- Touch
If you touch a non-existing file, it will be created. But if you touch an existing file, its modification time will be updated.


.jpg?table=block&id=29d76b1d-f1a8-8072-a9bf-cc78d1c7d881&cache=v2)