Linux logo

Linux CHEAT SHEET

[ SKILLS: 118 • SECTIONS: 12 ]

Linux is a powerful, open - source operating system. This Skill Tree provides a comprehensive learning path for mastering Linux administration. Ideal for IT beginners, it offers a clear roadmap to understand command - line interfaces, system administration, and shell scripting. Through hands - on, non - video courses and practical exercises in an interactive shell playground, you'll gain real - world experience in managing Linux systems and automating tasks.

POWERED BY
LABEX.IO

TABLE OF CONTENTS

[ SECTIONS: 12 • COMMANDS: 118 ]
1.

BASIC SYSTEM COMMANDS

Basic System Commands focuses on fundamental system-related commands and operations in Linux, including text display, screen clearing, arithmetic calculations, and more.

Text display tasks cover various ways to display text on the terminal, making it readable and presentable.

Screen clearing involves removing or clearing the terminal screen, providing a clean slate for new content or interactions.

Arithmetic calculations involve performing mathematical operations in Linux, such as addition, subtraction, multiplication, and division.

Logic operations encompass tasks related to logical operations and expressions, enabling decision-making and control flow in scripts and commands.

Text columnizing helps format and align text data in columns for better readability.

Condition testing involves evaluating logical expressions to make decisions in scripts and commands.

Command building refers to constructing complex commands by combining multiple commands and options.

Displaying directory trees visually represents the hierarchical structure of directories and subdirectories.

Command assistance provides help and information about commands and their usage.

Accessing manual pages (man pages) provides detailed documentation and information about commands.

Line numbering adds line numbers to text files for reference and identification.

Input reading allows scripts and commands to read user input for interactive behavior.

Text formatting involves applying formatting styles to text for presentation purposes.

Delaying execution is used for scheduling tasks or creating time intervals in scripts.

Declaring variables is fundamental for storing and manipulating data in scripts.

Executing scripts runs custom sequences of commands, automating tasks and processes.

Exiting the shell terminates the current shell session or script execution.

2.

BASIC FILE OPERATIONS

Basic File Operations covers fundamental file operations in Linux, such as creating, updating, copying, moving, renaming, removing files, and managing links. It also includes text manipulation operations like concatenation, counting, cutting, paging, and scrolling.

Content listing involves listing the contents of directories and files, allowing users to view what is present in a specified location.

File creation and updating involve creating new files or modifying existing ones. This is essential for managing data and text files in Linux.

Copying files allows you to duplicate files or directories, making backups or replicating data when needed.

Moving or renaming files involves changing their location or changing their names, providing better organization and management.

Removing files is used to delete unwanted data from the file system, freeing up storage space.

Creating symbolic or hard links allows for efficient file access and management by creating references to files.

Concatenating files involves combining the contents of multiple files into a single file, often used for data analysis or text processing.

Displaying the beginning of a file is useful for viewing the initial contents of large files without loading the entire file into memory.

Displaying the end of a file helps examine the concluding portions of large files efficiently.

Counting text occurrences is crucial for analyzing data and generating statistics from text files.

Text cutting allows you to extract specific portions of text from files for further processing.

Paging through files enables users to read large files step by step for better comprehension and navigation.

Scrolling through files provides a dynamic way to view file contents, particularly useful for log files and long documents.

Changing file ownership is essential for managing access control and permissions in a Linux system.

Modifying file permissions allows you to control who can read, write, and execute files, enhancing security and access control.

3.

FILE AND DIRECTORY MANAGEMENT

File and Directory Management covers tasks related to managing files and directories in Linux, including navigating directories, displaying their contents, creating new directories, using wildcard characters, and searching for files.

Changing directories is the basic operation for navigating the file system in Linux.

Displaying directory contents is essential for exploring the contents of folders.

Creating directories is necessary for organizing files and data into a structured hierarchy.

Using wildcard characters like '*' and '?' in file operations allows for flexible and powerful file matching and manipulation.

Searching for files helps locate specific files or patterns within a directory or across the entire system.

Locating files provides a way to find the path of an executable file in the system.

Locating commands helps users identify the location of executable commands in the system.

Finding files or commands combines search functionality with useful information about file or command locations.

4.

TEXT PROCESSING

Text Processing focuses on text manipulation and processing tasks in Linux, including stream editing, text sorting, duplicate filtering, character translating, and more.

Pattern searching is crucial for text processing, allowing you to find specific text patterns within files.

Stream editing involves making changes to text data as it is being read or written, typically used in text processing pipelines.

Text processing involves manipulating and processing text data using various commands and techniques.

Sorting text allows for organizing data alphabetically or numerically, making it easier to analyze and work with.

Filtering duplicates is useful for removing redundant data and ensuring data quality.

Character translation helps replace specific characters or character sets in text data.

Line feed filtering is used to process and clean up text data by removing or replacing line breaks.

Merging lines combines multiple lines of text into one, facilitating data consolidation.

Joining files combines the contents of multiple files into a single file, useful for data integration.

The expr command evaluates basic arithmetic expressions in the Linux command line, with mandatory spaces between operators and operands.

5.

INPUT AND OUTPUT REDIRECTION

Input and Output Redirection covers input and output redirection techniques in Linux, including output multiplexing, data piping, and I/O redirection.

Output multiplexing allows you to send output to multiple destinations, such as files and the screen, simultaneously.

Data piping involves sending the output of one command as input to another, creating powerful data processing pipelines.

I/O redirecting allows you to control the input and output of commands, enabling automation and customization.

6.

PROCESS MANAGEMENT AND CONTROL

Process Management and Control covers tasks related to process management and control in Linux. It includes job managing, background running, job foregrounding, process terminating, multi-process killing, pattern-based killing, process waiting, and background management.

Job managing involves controlling and monitoring background jobs and processes on the system.

Background running refers to executing commands or processes in the background, allowing continued use of the terminal.

Job foregrounding brings background jobs to the foreground, allowing interaction with them.

Process terminating is used to stop or end running processes or jobs.

Multi-process killing enables users to terminate multiple processes simultaneously.

Pattern-based killing allows for terminating processes that match a specific pattern or criteria.

Process waiting involves waiting for a specific process or job to complete before proceeding.

Background management covers the control and monitoring of background processes, jobs, and tasks.

7.

SYSTEM INFORMATION AND MONITORING

System Information and Monitoring covers tasks related to system information retrieval and monitoring in Linux, including disk space reporting, process management, memory reporting, and more.

Disk space reporting provides information about disk usage, helping users manage storage resources.

File space estimating calculates the space required for files and directories, assisting in storage planning.

File system mounting allows users to attach external storage devices or network shares to the file system.

Command repeating is used to execute commands repeatedly, often with specified intervals.

Job scheduling involves setting up automated tasks to run at specific times or intervals using tools like cron.

System information displaying provides details about the system's hardware, software, and configuration.

Hostname managing includes tasks related to configuring and managing the system's hostname.

Process displaying lists the currently running processes on the system, including their status and resource usage.

Task displaying provides information about background tasks, jobs, and their status.

Memory reporting displays information about system memory usage, including RAM and swap space.

Date/time displaying shows the current date and time, which is often used for log entries and scheduling.

Command timing measures the execution time of commands or scripts, useful for performance analysis.

File converting/copying involves converting file formats or copying data between different formats or locations.

Service managing covers the control and management of system services and daemons.

8.

COMPRESSION AND ARCHIVING

Compression and Archiving focuses on tasks related to compression and archiving in Linux, including archiving files, compressing and decompressing archives.

Archiving involves creating compressed archive files to store multiple files or directories in a single package.

Compressing files reduces their size, saving storage space and speeding up data transfer.

gzip is a file format and a software application used for file compression and decompression.

Decompressing files is the process of restoring compressed files to their original state.

9.

USER AND GROUP MANAGEMENT

User and Group Management focuses on user and group management tasks in Linux, including user and group creation, modification, and permission management.

User adding involves creating new user accounts in the system.

User removing is the process of deleting user accounts from the system.

User modifying includes tasks like changing user attributes, such as username, password, and home directory.

Password changing allows users to update their passwords for security purposes.

Privilege granting involves assigning additional permissions or privileges to users or groups.

User switching allows users to change their active user context to access different privileges or environments.

Group displaying lists the existing user groups in the system.

Group adding involves creating new user groups in the system.

Group removing is the process of deleting user groups from the system.

Group changing includes tasks like modifying group attributes or membership.

User identifying provides information about the current user's identity and permissions.

Environment managing involves configuring user environment variables and settings.

Displaying user and group IDs provides numeric identifiers for users and groups.

Shell setting allows users to specify their preferred shell for command-line interactions.

Variable exporting makes environment variables available to child processes and scripts.

Variable unsetting removes environment variables from the current shell session.

10.

REMOTE ACCESS AND NETWORKING

Remote Access and Networking covers tasks related to remote access and networking in Linux, including secure connecting, network configuration, file transferring, and more.

Secure connecting involves establishing secure connections to remote servers or systems, often using SSH.

Network connecting includes tasks like connecting to remote servers, managing network connections, and troubleshooting network issues.

Secure copying allows for securely transferring files between local and remote systems using protocols like SCP.

Secure file transferring involves encrypting and transferring files securely over a network.

File transferring includes methods for transferring files between local and remote systems over a network.

Networking utility tools provide various functionalities for network management and diagnostics.

Network configuring covers the setup and configuration of network interfaces and parameters.

Network monitoring involves monitoring network performance, usage, and activity.

Network testing is used to assess network connectivity and diagnose network-related issues.

IP managing includes tasks related to managing IP addresses, subnets, and network configurations.

11.

PACKAGES AND SOFTWARES

Package Management and Software Installation focuses on tasks related to package management and software installation in Linux. It includes tasks such as non-interactive downloading, package handling, Python package installing, and package managing.

URL data transferring involves fetching data from remote URLs and transferring it to local files or processes.

Non-interactive downloading allows for automated downloads of files from the internet without user interaction.

Package handling tasks include installing, updating, and removing software packages on Linux systems.

Linux software refers to applications and utilities designed to run on the open-source Linux operating system, offering a wide range of free and customizable tools for various computing tasks.

Python package installing is specific to managing and installing Python packages using package managers.

OpenSSL is a robust, full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols, and it's also a general-purpose cryptography library.

12.

VERSION CONTROL AND TEXT EDITORS

Version Control and Text Editors covers version control-related tasks and text editor operations in Linux, including common line comparison, patch application, text editing, file difference viewing, and more.

File comparing involves comparing the content of two files to identify differences and similarities.

Common line comparison helps identify differences between two text files or directories using common lines.

Applying patches allows for making changes to files based on a patch file, typically used in software development.

Text editing involves modifying text files using command-line text editors, enhancing productivity and automation.

Viewing file differences provides a way to visualize and understand changes between two text files.

Simple text editing covers basic operations like adding, deleting, or modifying text within a file using command-line tools.

Graphical text editing refers to using graphical text editors for more advanced text manipulation tasks.

ABOUT THIS CHEAT SHEET

This Linux cheat sheet is part of LabEx's comprehensive programming education platform. Explore interactive labs, courses, and hands-on projects to master Linux and other technologies.

LEARN LINUX ON LABEX
LINUX CHEAT SHEET • GENERATED 7/17/2025 POWERED BY LABEX.IO