Linux Directory
Linux Directory
Contains essential binary executables like ls, cp, mv, cat, grep.
Needed for the system to boot and run basic commands.
Try this:
ls /bin
Contains system binaries for administrative tasks like shutdown, fdisk, iptables, mount.
Only root users can execute most commands here.
Try this:
ls /sbin
View logs:
cat /var/log/syslog
Contains files representing devices like hard disks, USB drives, and terminals.
Examples:
/dev/sda1 → First partition of the first hard disk
/dev/null → Discard anything written to it
/dev/tty → Terminal devices
Mount a drive:
mount /dev/sdb1 /mnt
Example:
ls /opt