Debian
Package installation
dpkg
Install a package from a .deb file
sudo dpkg -i PACKAGE_NAME
Remove a package
sudo dpkg -r PACKAGE_NAME
Purge a package
This removes the package and all its dependencies
sudo dpkg -P PACKAGE_NAME
List installed packages
dpkg -l
Localhost
Kill a process running on localhost
First, find the process using
lsof -i :3000
Then, kill the process via the PID
kill <PID>
User management
Create a new user with sudo
Create the new user. Need to use sudo
if not signed in as root.
adduser <newuser>
Give sudo priveleges
usermod -aG sudo <newuser>
Useful terminal commands
cmp
- Compares to see if two files are equivalent