Full Forms
sudo: super user do
apt: Advanced Packaging Tool
pip: Package Installer for Python
dpkg: Debian PacKaGe manager
Press Ctrl + O for Save
clear: Clean terminal
sudo shutdown now : Shut Down Lubuntu
ssh linux default port: port: 22
| Type | Linux Command | Function |
| Update | sudo apt update | |
| sudo apt upgrade | ||
| sudo apt update && sudo apt upgrade | ||
| Software Installation | sudo apt install app_name | Direct install From Server |
| cd /path | Go to directory where software is present | |
| sudo dpkg -i file_name.deb | Install Downloaded app | |
| which app_name | Verify Installation | |
| dpkg –list | All installed APT package | |
| snap list | All Snap Application | |
| flatpak list | All Flatpak Application | |
| sudo apt install postgresql | PostgreSQL | |
| sudo apt install postgresql-contrib | PostgreSQL Contribution | |
| sudo apt install python3-venv | Virtual Environment | |
| Software Uninstall | sudo apt remove app_name | Uninstall App only |
| sudo apt purge app_name | Uninstall app and Config Files | |
| Open Apps | app_name | |
| firefox | Open Firefox | |
| libreoffice –writer | Open Libre Writer | |
| python3 | Open Python Terminal | |
| code | Open Visual Studio Code | |
| Open File by Specific App | app_name filename.extension | |
| nano filename.txt | Open filename.txt in Nano Editor | |
| code test.py | Open test.py file in VS Code | |
| Disk/Partition | lsblk | Display all block device (Disk/Partition) |
| sudo fdisk -l | Detailed info of disk | |
| sudo apt install gparted | Install Gparted (GUI Partition Manager) | |
| gparted | Open Gparted | |
| Open URL | xdg-open https://domain | Universal Url Open Method |
| firefox https://domain | Open URL in firefox | |
| Directory/Files | cd /path | Go to directory |
| cd .. | Go one step back from directory | |
| mkdir directory_name | Create directory | |
| mkdir -p parent_directory/child_directory | Create two director that is create parent directory first and then child directory inside it | |
| ls | List the content of parent directory | |
| ls -l /path/to/directory | Check full path of directory | |
| mkdir -m 755 directory_name | Give Specific Permission, eg; mkdir -m 700 secure_folder | |
| touch file_name.extension | Create File | |
| nano filename.txt | Open text file in nano text editor | |
| rm filename.extension | To delete file of current directory | |
| mv /source_path/filename.extension /destination_path/ | Move file from source directory to destination directory | |
| mv /source_path/directory /destination_path/directory | Move directory from source directory to destination directory | |
| cp /source_path/filename.extension /destination_path/ | Copy file from source directory to destination directory | |
| rmdir /directory_path | Delete Empty Directory | |
| rmdir -r /directory_path | Delete a directory with content | |
| Remote Login (SSH) Setup | sudo apt install openssh-server | Install SSH Server |
| sudo systemctl status ssh | Check if SSH server is running | |
| sudo systemctl start ssh | If SSH is not active please make activate | |
| sudo systemctl enable ssh | Enable ssh to start automatically while booting | |
| ip addr | Check IP address | |
| sudo ufw allow ssh | Allow ssh in firewall | |
| sudo nano /etc/ssh/sshd_config | Check ssh configuration for port no | |
| SSH Login | ssh host_user@ip_address | |
| Python | python3 | Open Python Terminal |
| exit() | Exit from python terminal | |
| python3 /path_to_script/script_name.py | Run Python Script | |
| sudo apt install python3-pip | Install pip | |
| pip3 –version | Pip Version | |
| sudo apt install python3-biopython | Install Biopython |
