Linux Shell
linux command line guide
Standard system, directory filesystem, ownership permissions, & networking commands.
Standard Commands Included
14 commands mappedls -la
Filesystem
List directory contents in long format, including hidden dotfiles.
ls -la /var/www/html
chmod 755
Permissions
Set read, write, and execute permissions. 755 allows owner full, others read/execute.
chmod 755 deploy.sh
chown root
Permissions
Change the user and group ownership of a specified file or directory.
chown -R www-data:www-data /var/www
ps aux
System
Inspect all active processes running on host.
ps aux | grep nginx
systemctl
System
Control systemd system services. Start, stop, or query daemon units.
systemctl restart nginx
df -h
Filesystem
Report total disk space usage across all mounted filesystems in human-readable formats.
df -h
cd
Filesystem
Change active current directory path.
cd /var/log/nginx
mkdir
Filesystem
Create a new folder path.
mkdir -p src/components
rm -rf
Filesystem
Forcibly remove files or directory trees recursively (use caution).
rm -rf temp-build/
grep
Text Filtering
Search patterns inside text files recursively.
grep -rn "API_KEY" .env
find
Filesystem
Find files under standard directory paths using criteria.
find . -name "*.log"
tar -czvf
Utility
Compress folder paths recursively into zip tarballs.
tar -czvf archive.tar.gz /var/www/site
curl
Network
Submit REST or web calls to remote address endpoints.
curl -i https://api.devknow.com/health
ssh
Network
Establish secure socket connections to remote Linux servers.
ssh -i id_rsa deployer@dev.server.com