Linux Command Reference

Copied!

Updating and Upgrading

Update

sudo apt update -y;

Upgrade

sudo apt upgrade -y;

Both Update and Upgrade

sudo apt update -y && sudo apt upgrade -y;

Power Control

Reboot

sudo reboot;

Shutdown

shutdown -h now;

Tar

tar -zxvf ...

Install Commands

7zip

sudo apt install p7zip-full -y;

Asunder CD Ripper

sudo apt install asunder -y;

Curl

sudo apt install curl -y;

Flatpak

sudo apt install flatpak -y;

Gimp

sudo apt install gimp -y;

Git

# Get Git Configuration Information
read -p "Enter your preferred username for Git: " name;
read -p "Enter your preferred email for Git: " email;

# Install Git
sudo apt install git-all -y;

# Configure Git
git config --global user.name $name;
git config --global user.name;
git config --global user.email $email;
git config --global user.email;

Hax

npm install --global @haxtheweb/create

Neovim

sudo apt install neovim -y;

Node Version Manager + Node & NPM

# Install Node Version Manager
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash;

# Install latest versions of Node & NPM
nvm install --lts;

OBS Studio

sudo apt install obs-studio -y;

Perl

curl -L http://xrl.us/installperlnix | bash;

PHP

sudo apt install php -y;

Powershell

###################################
# Prerequisites

# Update the list of packages
sudo apt-get update

# Install pre-requisite packages.
sudo apt-get install -y wget

# Download the PowerShell package file
wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.6/powershell_7.4.6-1.deb_amd64.deb

###################################
# Install the PowerShell package
sudo dpkg -i powershell_7.4.6-1.deb_amd64.deb

# Resolve missing dependencies and finish the install (if necessary)
sudo apt-get install -f

# Delete the downloaded package file
rm powershell_7.4.6-1.deb_amd64.deb

# Start PowerShell
pwsh

Python

sudo apt-get install python3.6 -y && sudo apt-get install python3-pip -y;

Ruby

sudo apt-get install ruby-full -y;

Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh;

TypeScript

npm install --global typescript;

Vercel

npm i -g vercel;

VLC

sudo apt install vlc -y;

Vim

sudo apt install vim -y;

Wine

sudo apt install wine -y;

Wget

sudo apt install wget -y;

Yarn

npm install --global yarn;

ZSH

sudo apt install zsh -y;

# Install Oh My ZSH
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)";

VLC Commands

Play CD

vlc cdda:///dev/cdrom