0% found this document useful (0 votes)
25 views3 pages

Linux Commands Support Engineer

This document provides a comprehensive list of essential Linux commands for support engineers, categorized into sections such as Basic Navigation, System Monitoring, Process Management, Networking, User Permissions, Logs, Version Control, and Shell Scripting. Each command is accompanied by a brief description and an example of its usage. It serves as a quick reference guide for performing common tasks in a Linux environment.

Uploaded by

angleslost131
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views3 pages

Linux Commands Support Engineer

This document provides a comprehensive list of essential Linux commands for support engineers, categorized into sections such as Basic Navigation, System Monitoring, Process Management, Networking, User Permissions, Logs, Version Control, and Shell Scripting. Each command is accompanied by a brief description and an example of its usage. It serves as a quick reference guide for performing common tasks in a Linux environment.

Uploaded by

angleslost131
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Linux Daily Use Commands for Support Engineer

1. Basic Navigation & File Management


Command Description Example

pwd Print current working directory pwd

ls List files and directories ls -l /home

cd Change directory cd /var/log

cp Copy file or directory cp file.txt /backup/

mv Move or rename file/directory mv old.log new.log

rm Remove file rm temp.txt

find Search for files/directories find /var -name '*.log'

grep Search text inside files grep 'error' /var/log/syslog

2. System Monitoring
Command Description Example

top Show running processes top

htop Interactive process viewer (install separately) htop

free -h Show memory usage free -h

df -h Show disk space usage df -h

du -sh Show size of directory du -sh /var/log

uptime Show uptime and load averages uptime

3. Process & Service Management


Command Description Example

ps aux List all running processes ps aux | grep nginx

kill Kill process by PID kill 1234

killall Kill processes by name killall firefox

service Start/stop/restart services (SysV) service apache2 restart

systemctl Manage services (systemd) systemctl status ssh

4. Networking
Command Description Example

ping Test connectivity to host ping google.com

curl Fetch data from URL curl http://example.com


wget Download file from internet wget http://example.com/file.zip

netstat -tulnp Show open ports (deprecated, use ss) netstat -tulnp

ss -tulnp Show listening sockets and ports ss -tulnp

ip addr Show network interfaces and IPs ip addr show

5. User & Permissions


Command Description Example

whoami Show current logged in user whoami

id Show UID, GID, groups id

sudo Run command as root sudo systemctl restart ssh

chmod Change file permissions chmod 644 file.txt

chown Change file ownership chown user:group file.txt

passwd Change user password passwd

6. Logs & Debugging


Command Description Example

cat View file content cat /var/log/syslog

less View file page by page less /var/log/syslog

tail -f Monitor log file in real-time tail -f /var/log/syslog

journalctl View systemd logs journalctl -xe

dmesg Show kernel logs dmesg | tail

7. Version Control & Package Management


Command Description Example

git pull Update local repo from remote git pull origin main

apt-get update Update package index sudo apt-get update

apt-get install Install a package sudo apt-get install nginx

dpkg -i Install .deb package manually sudo dpkg -i package.deb

npm install Install Node.js dependencies npm install express

8. Shell & Scripting


Command Description Example

bash Start bash shell or run scripts bash script.sh

sh Run shell script sh backup.sh


crontab -e Edit cron jobs crontab -e

alias Create command shortcut alias ll='ls -la'

history Show command history history | grep ssh

You might also like