Several system administration commands in Linux address various aspects of the operating system, such as hardware, software, and user accounts. They are used to start or stop system services, install software packages, change user passwords, create new user accounts, change directory permissions, set up disk partitions and many more. By using these commands, we can manage and maintain the Linux systems securely and efficiently.
Command | Description |
---|---|
systemctl | In this command, you can enable or disable system services at boot time. |
journalctl | Using this command, you are able to view and manage system logs, including logs generated by kernel, system services, and user applications. |
dmesg | This command displays a system message buffer, including kernel messages related to hardware and system events. |
df | This command displays information about the file system disk usage and available space. |
du | This command is used to display the disk usage of files and directories. |
mount | This command is used to mount file systems, such as removable media or network shares, to a specified mount point in the file system. |
umount | This command is used to unmount file systems that are no longer in use. |
fdisk | This command is used to create, edit, and delete disk partitions. |
mkfs | This command is used to create file systems on partitions or devices. |
chown | This command is used to change the owner of files and directories. |
chmod | This command is used to change the permissions of files and directories. |
useradd | This command is used to create new user accounts on the system. |
userdel | This command is used to delete user accounts from the system. |
groupadd | This command is used to create new user groups on the system. |
groupdel | This command is used to delete user groups from the system. |
passwd | This command is used to change the password of a user account. |
hostnamectl | This command is used to view or modify the hostname of the system. |
timedatectl | This command is used to view or modify the system time and date. |
ifconfig | This command is used to configure network interfaces on the system. |
ip | This command is used to configure and manage network interfaces, routing, and tunnels. |
route | This command is used to view and manage the routing table. |
ping | This command is used to test network connectivity by sending ICMP packets to a specified host. |
traceroute | This command is used to trace the path of network packets from the source to the destination. |
netstat | This command is used to display network connections, routing tables, and interface statistics. |
iptables | This command is used to manage firewall rules for packet filtering, NAT, and port forwarding. |
ssh | This command is used to securely connect to remote systems over a network. |
scp | This command is used to securely copy files between systems over a network. |
rsync | This command is used to synchronize files and directories between systems over a network. |
crontab | This command is used to create, view, and manage scheduled tasks that run automatically at specified times. |
at | This command is used to schedule a one-time task to run at a specified time. |
systemctl suspend | This command is used to put the system into suspend mode, allowing it to be resumed later. |
systemctl hibernate | This command is used to put the system into hibernation mode, allowing it to be restored to its previous state upon resume. |
shutdown | This command is used to shut down or reboot the system. |
poweroff | This command is used to power off the system. |
reboot | This command is used to reboot the system. |