Linux Basics
Linux Basics
Basics
Basic File System Of Linux
Directory Data Stored In It
/bin Basic programs ( ls , cd , mv , etc. )
/sbin System programs ( fdisk , sysctl , mkfs , etc. )
/etc Configuration Files
/temp Temporary Files
/usr/bin Applications ( apt , Nmap , etc. )
/usr/share Application Support And Data Files
/home Personal Directories Of Users
/root Home Directory Of Super User ( Admin )
1
Linux
[Destination Folder]
mv [File Name]
Basics Move a file
[Directory Name]
mv [Directory Name1] Move a folder
[Directory Name2]
rm [File Name] Remove ( delete ) a file
rm [Directory Name] Remove ( delete ) a folder
cat [File Name] Shows the content of a file
chmod Helps in changing directory or file
permission ( see man chmod for
more )
./[File Name] Executes Shell File
bash Executes Shell Program
apt-get update Update Package
apt-get upgrade Update all installed software
top Shows Linux processes
kill [PID] Terminate Process Manually
w Shows who is logged in and what is
user doing
whoami Displays username of current user
touch [File Name] Create Empty File