If you're new to Linux, start here! This section will cover the basics, including how to access the command line and essential concepts.
cd [directory]lsmkdir [directory_name]touch [file_name]cp [source_file] [destination]mv [old_name] [new_name]rm [file_name]nano [filename]vi [filename]git clone https://github.com/username/repository.gitgit statusgit add README.mdgit commit -m "Updated Linux Bible in README.md"git push origin masterImportant
If you're working on a branch other than master, replace it with the appropriate branch name. If this is your first time pushing to the repository, Git may prompt you to configure your username and email:
git config --global user.email "you@example.com"
git config --global user.name "Your Name"git statusuname -alscpufree -mdf -hsudo adduser usernamesudo usermod -aG sudo usernamepasswd usernamesudo deluser usernamesudo apt updatesudo apt upgradesudo apt install packagenamesudo rebootjournalctllast rebootps auxkill PIDuptimetopifconfignetstat -tulnping example.comnetstat -sfsck /dev/sda1find / -type f -size +100MNote
Searches for files larger than 100 megabytes on the system.
sudo apt-get install unattended-upgradessudo dpkg-reconfigure --priority=low unattended-upgradesrkhunter --checksudo ufw status sudo ufw allow 22sudo ufw enableNote
Checks the firewall status, allows SSH traffic, and enables the firewall.
lsusblspciNote
Lists PCI devices connected to the system.
getent passwdNote
Shows a list of all user accounts on the system.
getent groupusermod -g newgroup usernameiostatdf -hTsudo apt install htop
htopNote
Interactive process viewer that provides a visual representation of CPU and memory usage.
sudo apt install lm-sensors
sensorsapt search packagenamesudo apt autoremovetar -cvzf backup.tar.gz /path/to/backuptar -xvzf backup.tar.gz -C /path/to/restoresudo apt updatesudo apt cleanjournalctl -xesudo nano /etc/network/interfacesnslookup example.comor
dig example.comls -l filenamecat /var/log/unattended-upgrades/unattended-upgrades.logsudo apt install sysstat
sar -udu -hsudo apt install sysstat
pidstat 1nohup command &This Linux Command Bible is licensed under [Apache-2.0 license]. See the LICENSE file for details.
