Science and technology

15 command-line aliases to save lots of you time

Linux command-line aliases are nice for serving to you’re employed extra effectively. Better nonetheless, some are included by default in your put in Linux distro.

reveals the checklist of present aliases. Setting an alias is so simple as typing:

  • To set up any utility/utility:

    alias set up="sudo yum install -y"

    Here, sudo and -y are non-compulsory as per consumer’s preferences:

  • To replace the system:

    alias replace="sudo yum update -y"

  • To improve the system:

    alias improve="sudo yum upgrade -y"

  • To change to the basis consumer:

    alias root="sudo su -"

  • To change to “user,” the place “user” is about as your username:

    alias consumer="su user"

  • To show the checklist of all accessible ports, their standing, and IP:

    alias myip="ip -br -c a"

  • To ssh to the server myserver:

    alias myserver="ssh consumer@my_server_ip”

  • To checklist all processes within the system:

    alias course of="ps -aux"

  • To examine the standing of any system service:

    alias sstatus="sudo systemctl status"

  • To restart any system service:

    alias srestart="sudo systemctl restart"

  • To kill any course of by its title:

    alias kill="sudo pkill"

    kill process alias.png
  • To show the whole used and free reminiscence of the system:

    alias mem="free -h"

  • To show the CPU structure, variety of CPUs, threads, and many others. of the system:

    alias cpu="lscpu"

  • To show the whole disk dimension of the system:

    alias disk="df -h"

  • To show the present system Linux distro (for CentOS, Fedora, and Red Hat):

    alias os="cat /etc/redhat-release"

    system_details alias.png
  • Most Popular

    To Top