System device commands

Difference between sbin and bin

sbin → System Binaries

bin → Normal Binaries

Onry root and users with sudo privileges have access to sbin Binaries.

Mount

Everything on the linux-filesystem belongs to some part of the filesystem-tree. So if we plug in some device we need to mount it to the filesystem. That pretty much means that we need to connect it to the filesystem. Mount is like another word for connect.

mount /dev/usb /media/usb → Mount usb device to be able to browse its content

umount /media/usb → Umount usb device

Systemctl

Systemctl can be used to enable and disable various services on your linux machine.

netstat -apnt → Verify services listening for connection

systemctl start → Start service

systemctl status → See service's status

systemctl stop → Stop service

systemctl enable → Enable service start upon boot

Init.d

Init.d is just a wrapper around Systemctl.

/etc/init.d/cron status
/etc/init.d/cron start
/etc/init.d/cron stop

Kernel

The Kernel is responsible for talking between the hardware and the software, and to manage the systems resources.

The Linux Kernel differs from Windows in that it contains drivers by default. So you don't have to go around looking for drivers like you do on windows when you want to install a printer, or something like that.

sudo apt update → Update system

sudo apt upgrade → Upgrade system

sudo apt dist-upgrade → Upgrade system to the lates Linux kernel

Last updated

Was this helpful?