-
/bin - Contains essential binary executables for the system. These are the basic command-line utilities required for the system to boot and operate in single-user mode. Examples include
ls,cp, andmv. -
/boot - Contains the boot loader files, including the kernel and other files needed to boot the Linux operating system. This directory is critical for system startup.
-
/dev - Contains device files. These are special files that represent hardware devices and peripherals such as hard drives, terminals, and USB devices. For example,
/dev/sdarepresents a hard disk. -
/etc - Contains all the system-wide configuration files and shell scripts that are used to boot and initialize system settings. This includes configuration files for different services and applications.
-
/home - Contains the home directories for all the system's users. Each user has a directory under
/home, where they can store personal files and directories. For example,/home/username. -
/lib - Contains essential shared libraries needed to boot the system and run the commands in
/binand/sbin. This directory also includes kernel modules. -
/mnt - A mount point for temporarily mounting filesystems. This directory is commonly used by system administrators to mount storage devices or other file systems.
-
/opt - Used for the installation of add-on application software packages. Applications that are not included in the default Linux distribution can be installed here.
-
/proc - A virtual filesystem that provides information about running processes and the kernel. This directory contains files that are representations of system and process information.
-
/root - The home directory of the root user (superuser). This is not the root (/) directory, but the root user's personal directory.
-
/sbin - Contains essential system binaries that are generally used by the system administrator. These commands are crucial for system maintenance and repair. Examples include
fsck,reboot, andshutdown. -
/srv - Contains data for services provided by the system. For example, web server data might be stored in
/srv/www. -
/tmp - Contains temporary files that are created by system processes and applications. Files in this directory may be deleted upon system reboot.
-
/usr - Contains user utilities and applications. This directory has several subdirectories, such as
/usr/binfor user binaries,/usr/libfor libraries, and/usr/sharefor shared data. -
/var - Contains variable data files. This includes log files, mail and printer spool files, and files that are frequently modified. For example, log files are stored in
/var/log.
To view the system's user account information, you can use the following command:
cd /etc && cat passwdThis will display the contents of the /etc/passwd file, which contains user account information. Note that while this file can be viewed by all users, sensitive information such as passwords is stored in a more secure manner (e.g., /etc/shadow).
adduser and useradd
sudo deluser name - removing user
apt advanced package tool
sudo apt install --- , sudo remove ...
nslookup dig
sudo chmod -R o+wrx folder - regressively addimg permission

Change ownership
sudo chown mathew:group file
grep -i term file.txt
grep -i term < file.txt giving input
grep -i term * looks for all files in current directory grep -iR will look into directory too grep -R term /etc/*
reader like cat, can use up and down arrow, search :q quite
percentage +less
head -2 file






