Linux Help Guide: List of Useful Command Line Codes (20+)

Siren Watcher Researcher Writer - Linux Help Guide: List of Useful Command Line Codes (20+ Arguments)

Linux Help Guide: List of Useful Command Line Codes (20+ Arguments)

Some basic command line arguments which will help you either get out of a tough situation or just be overall helpful for daily use. Arguments for general program downloading, Sound issues, how to Flush DNS, Boot to BIOS, Fix Boot Partition and Repair Filesystem.

Author: Siren Watcher. Published: 2021-05-05.

Linux Help Guide: List of Useful Command Line Codes (20+ Arguments)

Siren Watcher Researcher Writer - Linux Help Guide: List of Useful Command Line Codes (20+ Arguments)

Some basic command line arguments which will help you either get out of a tough situation or just be overall helpful for daily use. Arguments for general program downloading, Sound issues, how to Flush DNS, Boot to BIOS, Fix Boot Partition and Repair Filesystem.

Author: Siren Watcher. Published: 2021-05-05.

General

sudo apt-get update
sudo apt update -m
  • Updates your system.
sudo apt-get upgrade
sudo apt full-upgrade
  • Upgrades your system. Such as core system files and individual repository updates.
sudo ubuntu-drivers autoinstall
  • If you have an ubuntu based system like Pop!, you can use this to autoinstall drivers which may be missing or broken.
sudo dpkg --get-selections
  • Lists all installed files for Ubuntu-based distributions. For other distros here are some examples.
sudo apt --fix-missing update
  • Fixes broken packages.
sudo apt clean
  • Cleans local repository of retrieved package files.
sudo dpkg --configure -a
apt list –installed
  • Lists all installed files.
sudo apt install <filename>
sudo apt install -f
  • Installs a program.
sudo apt install pop-desktop
  • Will install any missing dependencies from Pop! OS.

Programs

Install, Uninstall and Purge are the three defaults for program command line arguments. Purge is a deep clean remove which can be useful if there is some problems removing all the little parts of a program.

sudo apt-get install <program name>
sudo apt remove <program name>
sudo apt autoremove --purge
sudo apt-get --purge remove <program name>

Sound Issues

‘Turning it on and off again’ is sometimes the greatest advice for Linux sound issue tech problems.

sudo alsa force-reload

Flush DNS

sudo systemd-resolve --flush-caches
sudo systemctl restart nscd.service
sudo systemctl restart named sudo
systemctl restart dnsmasq

Boot to BIOS

systemctl reboot --firmware-setup

Boot to Recovery

If your PC is failing to boot. Such as having a headers error message (like vm-linuz) you can use this when your BIOS screen is loading to get into Pop! OS recovery.

ctrl + alt + F1

Fix Boot Partition

dpkg -l | grep linux-image
sudo apt remove --purge linux-image-(numbers here)-generic

You can also see their numbers in Disks.

You can go into nautilus (root, then type in nautilus to enter nautilus) > Boot, to delete them manually also.

Repair Filesystem

Only use these codes prior to the OS from booting, such as in Gparted to repair your filesystem. Change sd1 with your fsck -l drive’s code.

sudo fdisk -l
fsck /dev/sda1
sudo fsck -f /dev/sda1

Flatpak and Snap

List Flatpak or Snap installed programs.

flatpak list
snap list
Linux Guide: 20+ List of Useful Command Line Codes

… leave Linux Help Guide: List of Useful Command Line Codes (20+ Arguments) …

Siren Watcher Researcher Writer Portfolio CV Resume Kangaroo

I’m a freelance researcher and writer who specialises in providing answers to any questions you may have. Giving you well sourced content on any topic.

© Siren Watcher [vict_year]