Commands
As Linux is a command-line-based operating system, the use of commands is crucial for interacting with the system, performing tasks, and managing files and applications.
Here is a list of essential and useful commands:
Create a bash instance
bashExit from a bash instance
exitSee the manual/documentation or find a command
man $command
man -k $keyword #Make a search of a command by a keyword
apropos $keyword #Find a command by descriptionClean up the console content
clearGet information about users logged in
whoami #Shows the currently logged-in user
who #Shows all logged-in usersGet the name of the computer
Get information about the machine and system
Executes a command with superuser permissions
See user and group information
List files, directories, devices, and more
Change the permissions of a file
Shows the actual working directory
Change the directory to the specified path
Get the path of the file by searching in the directories defined at the
$PATHenvironment variable
Get the path of a file by searching in locate.db
Update locate.db manually
List sockets/services statistics
Use enviroment variables
List command history
Repeat a command based on the history
Open a file, usually graphic files such as images and PDFs
Assign a name for a simplified command or redefine a command
Output any text that we provide
Create a new directory
Show file content in the command line
Find a file or directory
Count the number of entries in a file or output
Search through a file and show any entries with the specified value
Edit text and streams on output
Extract a section of text from the file
Sort lines of a file
Find unique occurrences in a file
Compare the content of files
Shows the content of a file with replacements in the output
Format the output in columns
Encode or decode base64
Transform hex dump
Compress or extract files
Use data encryption
Create a file with the specified name
Delete a file or directory
Copy the content of a file into a new one
Move or rename a file
Shows the type of file
Execute a command at regular intervals
Change to the specified user
Create or edit a file through the command line
Shows the estimated disk usage of a file
Make petitions to websites
Verify MD5 encryption for a file
Get and send files via SCP
Execute Python utilities
Get information about the system running processes
To kill a system process, we can send some signals to specify the type of killing
Manage system processes and services
Handle background processes
Schedule to repeat a process as a crontab
Manage packages, repositories, and digital signatures from APT
Manage packages via Debian
Test if the connection to a remote resource is possible
Show the path a request takes as it heads to the target machine
Gather information about with DNS lookups
Obtain the IP and record information from a domain
Query recursive DNS servers for the domain's information
Manage disk partition table
Network Utilities
List the capabilities of all binary files
Modify users, groups, and passwords
Last updated