Class PPT
Linux Administration
1. Linux Admin Basics
- In Linux, Admin is called "super-user"
- Admin's login name is "root"
- Most modern Linux systems disable "root" login (for security)
- To execute commands with admin privileges use "sudo" (if approved by system admin)
sudo apt update
sudo apt install vim gcc python3 python3-pip
sudo snap install --classic code
2. Essential Commands
2.1 Directory Commands
Command |
Description |
Syntax |
pwd |
Print present working directory |
pwd |
cd |
Change directory |
cd dirpath |
ls |
List directory contents |
ls dirpath |
mkdir |
Make directory |
mkdir dirpath |
rmdir |
Remove empty directory |
rmdir dirpath |
CD Command Options
cd ~
- Change working directory to home directory
cd -
- Change working directory to previous working directory
cd ..
- Change working directory to parent directory
2.2 File Commands
CAT Command
cat > filepath
- Create new file
cat filepath
- Display file contents
RM Command