Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 4

LINUX

Experiment 2
Lists of Commands
Inode Commands
1) Find: Search for files in a directory hierarchy.
find filename.txt

2) Locate: Search for files in a database.


locate filename

3) Stat: It provides detailed information about a file.


stat filename.txt

4) History: Display the command history.


history

Networking commands
5) Ping: It is used to send ICMP echo requests to a specified network host (to check network connectivity).
ping www.google.com

6) Ifconfig: It is used to configure and display information about network interfaces.


ifconfig
7) Ip: it displays and manipulates routing, devices, policy routing, and tunnels.
ip addr show

8) Route: it is used to view and manipulate the IP routing table.


route –n

9) Hostname: It displays the hostname of the system.


hostname

10) Traceroute: It tracks the route that packets take to reach a destination host.
traceroute www.google.com

Process commands
11) PS: It is used to display information about active processes.
ps

12) Top: It provides a dynamic real-time view of running processes.


top
13) Kill: It is used to terminate a process by sending a signal to its PID.
kill PID

14) Killall: This command is similar to ‘kill’, but it terminates all processes with a specified
name.
killall chrome

15) Pgrep: It is used to search for processes based on name and other attributes and print
their PIDs.
pgrep chrome

16) Htop: It provides more features and a friendlier interface than top command.
htop

You might also like