Path | Description |
---|---|
/ | The root (/) holds essential boot files and mounts all other filesystems as subdirectories. |
/bin | Contains essential command binaries. |
/boot | Consists of the static bootloader, kernel executable, and files required to boot the Linux OS. |
/dev | Contains device files to facilitate access to every hardware device attached to the system. |
/etc | Local system configuration files. Configuration files for installed applications may be saved here as well. |
/lib | Shared library files that are required for system boot |
/media | External removable media devices such as USB drives are mounted here. |
/home | Each user on the system has a subdirectory here for storage. |
/usr | Contains executables, libraries, man files, etc. |
/tmp | The operating system and many programs use this directory to store temporary files. This directory is generally cleared upon system boot and may be deleted at other times without any warning. |
/sbin | This directory contains executables used for system administration (binary system files). |
/root | The home directory for the root user. |
/opt | Optional files such as third-party tools can be saved here. |
/mnt | Temporary mount point for regular filesystems. |
/var | This directory contains variable data files such as log files, email in-boxes, web application related files, cron files, and more. |
Terminal is a command line application to tell our linux system what do we need, heres how it looks like:
┌──(user㉿linux)-[~]
└─$
┌──(user㉿linux)-[~]
└─$ ls
Applications Downloads Pictures
Desktop Music Templates
Documents Public Videos
┌──(user㉿linux)-[~]
└─$ cd Documents
┌──(user㉿linux)-[~/Documents]
└─$
┌──(user㉿linux)-[~]
└─$ cd Documents
┌──(user㉿linux)-[~/Documents]
└─$ cd ..
┌──(user㉿linux)-[~]
└─$
┌──(user㉿linux)-[~/Documents]
└─$ mkdir Folder
┌──(user㉿linux)-[~/Documents]
└─$ ls
python html Pictures
help Folder
┌──(user㉿linux)-[~]
└─$ls
Applications Downloads Pictures
Desktop Music Templates
Documents Public Videos
Deleteme.txt
┌──(user㉿linux)-[~]
└─$rm Deleteme.txt
┌──(user㉿linux)-[~]
└─$ls
Applications Downloads Pictures
Desktop Music Templates
Documents Public Videos
┌──(user㉿linux)-[~]
└─$ which rm
/usr/bin/rm
┌──(user㉿linux)-[~]
└─$sudo rm admin.png
[sudo] password for user:
┌──(user㉿linux)-[~]
└─$sudo ps
PID TTY TIME CMD
14032 pts/0 00:00:00 zsh
14212 pts/0 00:00:00 ps
┌──(user㉿linux)-[~]
└─$sudo who
user
┌──(user㉿linux)-[~]
└─$sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 931.5G 0 disk
nvme0n1 259:0 0 232.9G 0 disk
┌──(user㉿linux)-[~]
└─$sudo man ls
┌──(user㉿linux)-[~]
└─$apropos google
chromium (1) - the web browser from Google
┌──(user㉿linux)-[~]
└─$cat cats.txt
mew :3
┌──(user㉿linux)-[~]
└─$whoami
user
┌──(user㉿linux)-[~]
└─$hostname
linux
┌──(user㉿linux)-[~]
└─$pwd
linux
┌──(user㉿linux)-[~]
└─$ifconifg
┌──(user㉿linux)-[~]
└─$ip
┌──(user㉿linux)-[~]
└─$ss
┌──(user㉿linux)-[~]
└─$netstat
┌──(user㉿linux)-[~]
└─$lsusb
Bus 001 Device 002: ID 1532:008a Razer USA, Ltd RZ01-0325, Gaming Mouse [Viper Mini]
┌──(user㉿linux)-[~]
└─$ sudo su root
password:
┌──(root㉿linux)-[/home/user]
└─#
Bus 001 Device 002: ID 1532:008a Razer USA, Ltd RZ01-0325, Gaming Mouse [Viper Mini]
┌──(user㉿linux)-[~]
└─$useradd batman
┌──(user㉿linux)-[~]
└─$usermod batman
┌──(user㉿linux)-[~]
└─$userdel batman
┌──(user㉿linux)-[~]
└─$addgroup super_heros
┌──(user㉿linux)-[~]
└─$delgroup super_heros
┌──(user㉿linux)-[~]
└─$passwd batman 1234
┌──(user㉿linux)-[~]
└─$dpkg install chrome.deb
┌──(user㉿linux)-[~]
└─$sudo apt install firefox
┌──(user㉿linux)-[~]
└─$sudo snap firefox
┌──(user㉿linux)-[~]
└─$systemctl --help
┌──(user㉿linux)-[~]
└─$kill chrome.exe
┌──(user㉿linux)-[~]
└─$bg ping google.com
┌──(user㉿linux)-[~]
└─$fg ping google.com
┌──(user㉿linux)-[~]
└─$jobs
┌──(user㉿linux)-[~]
└─$curl 192.168.1.121/nc.exe
┌──(user㉿linux)-[~]
└─$clear
┌──(user㉿linux)-[~]
└─$touch fire.txt
┌──(user㉿linux)-[~]
└─$tree
├── python
│ ├── data.py
│ ├── Login.py
│ ├── Mikustore.py
│ ├── ping.py
│ ├── __pycache__
│ │ └── ping.cpython-312.pyc
│ ├── store.py
│ └── ur ip.py
└── windows 11
└── Win11_24H2_EnglishInternational_x64.iso
┌──(user㉿linux)-[~]
└─$mv password.txt home/Documents/myfolder
┌──(user㉿linux)-[~]
└─$cp password.txt home/Documents/myfolder
┌──(user㉿linux)-[~]
└─$find -name password.txt
┌──(user㉿linux)-[~]
└─$nano password.txt
┌──(user㉿linux)-[~]
└─$locate nc.exe
┌──(user㉿linux)-[~]
└─$ systemctl status | grep apache2
│ │ └─5995 grep --color=auto apache2
Trying My Best in cybersecurity, tutorials, and more!