Linux System Administration Commands
Linux System Administration Commands
Administration Commands
Listing the currently logged-in users
#date
To view detailed information, we use the command
#timedatectl
Linux uptime
status command
• To stop a service
#service script_name status
#service network status
start command
• To start a service
#service script_name start
#service network start
stop command
• To stop a service
#service script_name stop
#service network stop
restart command
• To restart a service
#service script_name restart
#service network restart
Linux Terminating
• To terminate a process
• to run the system uninterruptedly
• after terminating a process without rebooting the
system.
• internal or external.
Command Function
#ps - A
Common signal names and numbers
Signal Name Signal Number Signal Use
SIGHUP 1 Hangup
SIGINT 2 Interrupt
SIGQUIT 3 Quit
SIGKILL 9 Kill
SIGTERM 15 Terminate
SIGSTOP 24 Stop
kill -SIGNAL PID
#kill -9 2134
Pmap command
• The command pmap reports memory map of one
process or multiple processes.
• It displays information about memory usage and
address space of a process.
• To check pmap of a process we need PID of the
process.
#pmap PID
#pmap 2134
Linux ls command options
ls option Description
ls -a In Linux, hidden files start with . (dot) symbol
and they are not visible in the regular directory.
The (ls -a) command will enlist the whole list of
the current directory including the hidden files.