Code Monkey home page Code Monkey logo

linux-config-files's Introduction

My linux config๐Ÿต

These are some useful shell (sh/zh) command aliases which I created for personal use. Anyone can use it. ๐Ÿš๐Ÿ”ซ

Add the below lines to your ~/.bash_aliases file and restart the shell / terminal. โ€‹๐Ÿ‘จ๐Ÿปโ€‹โœˆ๏ธ๏ธโ€‹๐Ÿ”โ€‹๐Ÿขโ€‹

# Aptitude & System related command aliases.
alias udg="sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade"
alias ud="sudo apt-get update"
alias ug="sudo apt-get upgrade"
alias dg="sudo apt-get dist-upgrade"
alias src="sudo nano /etc/apt/sources.list"
alias gsrc="sudo gedit /etc/apt/sources.list"
alias csrc="sudo cat /etc/apt/sources.list"
alias ver="cat /etc/debian_version"
alias kver="uname -a"
alias cache="sudo apt-get clean"
alias get="sudo apt-get install"
alias yget="sudo apt-get install -y"
alias sget="sudo apt-get install --install-suggests"
alias syget="sudo apt-get install --install-suggests -y"
alias del="sudo apt-get remove"
alias fdel="sudo apt-get remove --purge --autoremove"
alias arem="sudo apt-get autoremove"
alias di="sudo dpkg -i"
alias gi="sudo gdebi"
alias bi="sudo apt-get --fix-broken install"
alias sv="sudo visudo"
alias alt="sudo update-alternatives --config "
alias lssrc="ls /etc/apt/sources.list.d"
alias cdsrc="cd /etc/apt/sources.list.d"
# Disable from here till alias "grubg" when using with WSL.
alias lsthm="ls /usr/share/themes/"
alias lsico="ls /usr/share/icons/"
alias cdthm="cd /usr/share/themes/"
alias cdico="cd /usr/share/icons/"
alias grubn="sudo nano /etc/default/grub"
alias grubg="sudo gedit /etc/default/grub"

# Systemctl related command aliases.
alias off="sudo systemctl poweroff"
alias boot="sudo systemctl reboot"
alias sus="sudo systemctl suspend"
alias hib="sudo systemctl hibernate"
alias sstop="sudo systemctl stop"
alias srun="sudo systemctl start"
alias sstat="sudo systemctl status"
alias srest="sudo systemctl restart"
alias son="sudo systemctl enable"
alias soff="sudo systemctl disable"

# Python and pip aliases.
alias python3=python
alias pip3=pip

# Bash related command aliases.
alias shf="ls -ld .?*"
alias brc="sudo nano ~/.bashrc"
alias barc="sudo nano ~/.bash_aliases"
alias carc="cat ~/.bash_aliases"
alias gbrc="sudo gedit ~/.bashrc"
alias gbarc="sudo gedit ~/.bash_aliases"
alias pro="sudo nano ~/.profile"
alias gpro="sudo nano ~/.profile"
# Unlimited history size file
# Make Hist file values in brc to -1.
alias past="sudo nano ~/.bash_history"
# alias gpast="gedit ~/.bash_history"
alias pd="passwd"
alias spd="sudo passwd"
alias q="exit"

# Miscellaneous & application related command aliases.
alias cls="clear"
alias wi="whereis"
alias wh="which"
alias spm="sudo synaptic"
alias shell="exec $SHELL -l"
alias rem="sudo rm -rf"
alias sun="sudo nano"

Below are the repositories / mirrors that I use for apt on Debian.

# Debian 11 Bullseye
# Official mirrors for Bullseye
# Bullseye
deb https://deb.debian.org/debian/ bullseye main non-free contrib
deb-src https://deb.debian.org/debian/ bullseye main non-free contrib

# Bullseye-backports
deb https://deb.debian.org/debian/ bullseye-backports main contrib non-free
deb-src https://deb.debian.org/debian/ bullseye-backports main contrib non-free

# Bullseye-backports-sloppy
deb https://deb.debian.org/debian/ bullseye-backports-sloppy main contrib non-free
deb-src https://deb.debian.org/debian/ bullseye-backports-sloppy main contrib non-free

# Bullseye-updates
deb https://deb.debian.org/debian/ bullseye-updates contrib non-free main
deb-src https://deb.debian.org/debian/ bullseye-updates non-free main contrib

# Bullseye-proposed-updates
deb https://deb.debian.org/debian/ bullseye-proposed-updates non-free main contrib
deb-src https://deb.debian.org/debian/ bullseye-proposed-updates non-free main contrib


# Alt official mirror for Bullseye
# Bullseye
deb https://mirrors.edge.kernel.org/debian/ bullseye main non-free contrib
deb-src https://mirrors.edge.kernel.org/debian/ bullseye main non-free contrib

# Bullseye-backports
deb https://mirrors.edge.kernel.org/debian/ bullseye-backports main contrib non-free
deb-src https://mirrors.edge.kernel.org/debian/ bullseye-backports main contrib non-free

# Bullseye-backports-sloppy
deb https://mirrors.edge.kernel.org/debian/ bullseye-backports-sloppy main contrib non-free
deb-src https://mirrors.edge.kernel.org/debian/ bullseye-backports-sloppy main contrib non-free

# Bullseye-updates
deb https://mirrors.edge.kernel.org/debian/ bullseye-updates contrib non-free main
deb-src https://mirrors.edge.kernel.org/debian/ bullseye-updates non-free main contrib

# Bullseye-proposed-updates
deb https://mirrors.edge.kernel.org/debian/ bullseye-proposed-updates non-free main contrib
deb-src https://mirrors.edge.kernel.org/debian/ bullseye-proposed-updates non-free main contrib


# Bullseye-security
deb https://security.debian.org/debian-security bullseye-security main contrib non-free
deb-src https://security.debian.org/debian-security bullseye-security main contrib non-free
# Alternative to security.debian.org/debian-security path.
deb https://security-cdn.debian.org bullseye-security main contrib non-free
deb-src https://security-cdn.debian.org bullseye-security main contrib non-free


# Debian 12 Bookworm
# Official Bookworm mirrors
# Bookworm
deb https://deb.debian.org/debian/ bookworm contrib main non-free-firmware non-free
deb-src https://deb.debian.org/debian/ bookworm contrib main non-free-firmware non-free

# Bookworm-backports
deb https://deb.debian.org/debian/ bookworm-backports contrib main non-free-firmware non-free
deb-src https://deb.debian.org/debian/ bookworm-backports contrib main non-free-firmware non-free

# Bookworm-updates
deb https://deb.debian.org/debian/ bookworm-updates contrib main non-free-firmware non-free
deb-src https://deb.debian.org/debian/ bookworm-updates contrib main non-free-firmware non-free

# Bookworm-proposed-updates
deb https://deb.debian.org/debian/ bookworm-proposed-updates contrib main non-free-firmware non-free
deb-src https://deb.debian.org/debian/ bookworm-proposed-updates contrib main non-free-firmware non-free


# Alt official Bookworm mirrors
# Bookworm
deb https://mirrors.edge.kernel.org/debian/ bookworm contrib main non-free-firmware non-free
deb-src https://mirrors.edge.kernel.org/debian/ bookworm contrib main non-free-firmware non-free

# Bookworm-backports
deb https://mirrors.edge.kernel.org/debian/ bookworm-backports contrib main non-free-firmware non-free
deb-src https://mirrors.edge.kernel.org/debian/ bookworm-backports contrib main non-free-firmware non-free

# Bookworm-updates
deb https://mirrors.edge.kernel.org/debian/ bookworm-updates contrib main non-free-firmware non-free
deb-src https://mirrors.edge.kernel.org/debian/ bookworm-updates contrib main non-free-firmware non-free

# Bookworm-proposed-updates
deb https://mirrors.edge.kernel.org/debian/ bookworm-proposed-updates contrib main non-free-firmware non-free
deb-src https://mirrors.edge.kernel.org/debian/ bookworm-proposed-updates contrib main non-free-firmware non-free


# Bookworm-security
deb https://security.debian.org/debian-security bookworm-security contrib main non-free-firmware non-free
deb-src https://security.debian.org/debian-security bookworm-security contrib main non-free-firmware non-free
# Alternative to security.debian.org/debian-security path.
deb https://security-cdn.debian.org bookworm-security contrib main non-free-firmware non-free
deb-src https://security-cdn.debian.org bookworm-security contrib main non-free-firmware non-free


# Testing repositories
# Testing
deb https://deb.debian.org/debian/ testing contrib main non-free-firmware non-free
deb-src https://deb.debian.org/debian/ testing contrib main non-free-firmware non-free

# Testing-backports
deb https://deb.debian.org/debian/ testing-backports contrib main non-free-firmware non-free
deb-src https://deb.debian.org/debian/ testing-backports contrib main non-free-firmware non-free

# Testing-updates
deb https://deb.debian.org/debian/ testing-updates contrib main non-free-firmware non-free
deb-src https://deb.debian.org/debian/ testing-updates contrib main non-free-firmware non-free

# Testing-proposed-updates
deb https://deb.debian.org/debian/ testing-proposed-updates contrib main non-free-firmware non-free
deb-src https://deb.debian.org/debian/ testing-proposed-updates contrib main non-free-firmware non-free


# Testing security
deb https://deb.debian.org/debian-security/ testing-security contrib main non-free-firmware non-free
deb-src https://deb.debian.org/debian-security/ testing-security contrib main non-free-firmware non-free


# Microsoft Debian (Bullseye)
# Stable
deb https://packages.microsoft.com/debian/11/prod bullseye main
deb-src https://packages.microsoft.com/debian/11/prod bullseye main

# Insiders fast
deb https://packages.microsoft.com/debian/11/prod insiders-fast main
deb-src https://packages.microsoft.com/debian/11/prod insiders-fast main

# Insiders slow
deb https://packages.microsoft.com/debian/11/prod insiders-slow main
deb-src https://packages.microsoft.com/debian/11/prod insiders-slow main

# Nightly
deb https://packages.microsoft.com/debian/11/prod nightly main
deb-src https://packages.microsoft.com/debian/11/prod nightly main

# Testing
deb https://packages.microsoft.com/debian/11/prod testing main
deb-src https://packages.microsoft.com/debian/11/prod testing main

# VSCode repo
deb https://packages.microsoft.com/repos/vscode stable main
deb-src https://packages.microsoft.com/repos/vscode stable main

โœจ

Cheers ! ๐Ÿฅ‚

linux-config-files's People

Contributors

iamvaidh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.