Linux Commands Explanation

Terminal

How to access?

To access terminal, press Ctrl+Alt+T

Command: 'sudo'

Description:

This command allows a user with administrative privileges to execute commands as another user or as the superuser (root).

Command: 'pacman'

Description:

This command is used to install, upgrade, and manage software packages on an Arch Linux system.

Command: 'apt-get'

Description:

This command is used on Debian and Ubuntu-based Linux systems to install, remove, and manage software packages.

Command: 'yay'

Description:

This command is used for searching, installing, upgrading and removing packages from the Arch User Repository.

Command: 'who'

Description:

This command lists all the users connected to the system.

Command: 'id'

Description:

This command displays the user ID (UID) and group ID (GID) of the current user or a specified user.

Command: 'useradd'

Description:

This command is used to make a new user account on Linux systems.

Command: 'groupadd'

Description:

This command is used to make a new group on Linux systems.

Command: 'pwd'

Description:

This command displays the current working directory.

Command: 'cd'

Description:

This command is used to change the current working directory.

Command: 'ls'

Description:

This command is used to list the files and directories in the current working directory.

Command: 'mkdir'

Description:

This command is used to make a new directory.

Command: 'rmdir'

Description:

This command is used to remove a directory.

Command: 'top'

Description:

This command is used to display information about the processes currently using the most system resources.

Command: 'chown'

Description:

This command is used to change the owner and group of a file or directory.

Command: 'chmod'

Description:

This command is used to change the permissions of a file or directory.

Command: 'ps'

Description:

This command is used to display information about the currently running processes.

Command: 'ifconfig'

Description:

This command is used to display the network configuration of the current device.

Command: 'cat'

Description:

This command is used to display the contents of a file on the command line.

Command: 'tail'

Description:

The 'tail' command is used to display the last few lines of a text file in a terminal window.

Command: 'touch'

Description:

This command makes an empty file or updates the modification time of an existing file.

Command: 'man'

Description:

This command displays the manual pages for a certain command.

Command: 'df'

Description:

This command displays the amount of disk space used and available on a file system.

Command: 'free'

Description:

This command displays the amount of free and used memory on the system.

Command: 'hostname'

Description:

This command displays the current hostname of the system.

Command: 'shutdown'

Description:

This command shuts down the system.

Command: 'history'

Description:

This command displays a list of previously executed commands.

Command: 'clear'

Description:

This command clears the terminal screen.

Command: 'tree'

Description:

This command displays a graphical representation of the directory structure.

Command: 'vi'

Description:

This command is a text editor used in the terminal.

Command: 'mv'

Description:

This command moves a file or directory to a new location.

Command: 'mv'

Description:

This command displays system information in a visually pleasing way.

Command: 'lsusb'

Description:

This command displays information about USB buses and devices connected to them in the system.

Command: 'cp'

Description:

This command copies a file or directory to a new location.

Command: 'w'

Description:

This command copies a file or directory to a new location.

Command: 'adduser'

Description:

This command adds a new user to the system.

Command: 'userdel'

Description:

This command deletes a user from the system.

Command: 'groupdel'

Description:

This command deletes a group from the system.

Command: 'usermod'

Description:

This command modifies user account settings.

Command: 'ln'

Description:

This command makes a link between files.

Command: 'fdisk'

Description:

This command displays and manipulates disk partition tables.

Command: 'wc'

Description:

This command displays the number of lines, words, and characters in a file.

Command: 'less'

Description:

This command displays a file one screenful at a time.

Command: 'kill'

Description:

This command terminates a process.

Command: 'uptime'

Description:

This command displays the system uptime.

Command: 'gzip'

Description:

This command compresses files using the gzip algorithm.

Command: 'gunzip'

Description:

This command decompresses files that were compressed with gzip.

Command: 'diff'

Description:

This command displays the differences between two files.

Command: 'locate'

Description:

This command searches for files by name.

Command: 'find'

Description:

This command searches for files based on various criteria.

Command: 'uname'

Description:

This command displays information about the system and kernel.

Command: 'htop'

Description:

This command displays a process manager in the terminal.

Command: 'top'

Description:

This command displays a live view of system processes and their resource usage.

Command: 'ps'

Description:

This command displays information about currently running processes.

Command: 'jobs'

Description:

This command displays a list of current jobs running in the shell.

Command: 'grep'

Description:

This command searches for a specific pattern in a file.

Command: 'systemctl'

Description:

This command is used to control the state of the Systemd system and service manager.

Command: 'nice'

Description:

This command is used to change the priority of a process.

Command: 'chgrp'

Description:

This command is used to change the group ownership of a file or directory.