09-27-2018, 02:29 PM
Good post, I like these because I always come across a command or two that I've either forgot about or didn't know about.
I'll add a few commands to the list that have served me well over the years:
- To edit GRUB file (16.04/Mint 18x) Very useful for kernel edits/splashcreen edits/plymouth edits/SSD edits. Substitute gedit with whatever text editor you use.
sudo gedit /etc/default/grub
- Filter out private info from lshw command using:
sudo lshw-sanitize
- Trouble installing a program with dependencies, use this command: it checks for and install the required dependencies
sudo apt-get install -f
- Remove unneeded leftover residual files - I run this after kernel swaps normally
sudo apt-get autoremove
- If you install a bunch of stuff using PPA's and want an easy method of deleting them: for example, removing "someppa"
- Search for and install updates without input use this command:
sudo apt-get update && sudo apt upgrade -y
- Having trouble with net man or doing some editing and need the edits to appear, then run this command:
sudo service NetworkManager restart
- VPN's are hugely popular these days. If your distro doesn't come packaged with it then install OpenVPN
sudo apt-get install network-manager-openvpn-gnome
These are a few basic commands that maybe someone will find useful.
Have fun
I'll add a few commands to the list that have served me well over the years:
- To edit GRUB file (16.04/Mint 18x) Very useful for kernel edits/splashcreen edits/plymouth edits/SSD edits. Substitute gedit with whatever text editor you use.
sudo gedit /etc/default/grub
- Filter out private info from lshw command using:
sudo lshw-sanitize
- Trouble installing a program with dependencies, use this command: it checks for and install the required dependencies
sudo apt-get install -f
- Remove unneeded leftover residual files - I run this after kernel swaps normally
sudo apt-get autoremove
- If you install a bunch of stuff using PPA's and want an easy method of deleting them: for example, removing "someppa"
Code:
sudo add-apt-repository --remove ppa:someppa/ppa
- Search for and install updates without input use this command:
sudo apt-get update && sudo apt upgrade -y
- Having trouble with net man or doing some editing and need the edits to appear, then run this command:
sudo service NetworkManager restart
- VPN's are hugely popular these days. If your distro doesn't come packaged with it then install OpenVPN
sudo apt-get install network-manager-openvpn-gnome
These are a few basic commands that maybe someone will find useful.
Have fun