Linux Command Guide

Search and explore various Linux commands.

Ask AI

Summarize the situation you want to resolve in up to 300 characters and ask the AI which commands you need.

Search freely

Click on the desired category to filter the commands. You can also enter a keyword to search for specific content.

rm

Mastering the rm Command

The `rm` command is used to delete files or directories. Using it carelessly can lead to data loss that is difficult to recover, so it's essential to understand the meaning of each option and how to use it safely.

Learn more

rmdir

rmdir Command Guide: Deleting Empty Directories

`rmdir` command (remove directory) is used in Linux and Unix-like operating systems to delete **only empty directories**. If there are files or other subdirectories within the directory, `rmdir` will produce an error and will not delete it. Through this guide, you will understand the basic usage of `rmdir`, its limitations, and when to use this command.

Learn more

rsync

rsync: Synchronizing Files and Directories

rsync is a powerful utility for efficiently synchronizing files and directories between local or remote systems. It uses a delta-transfer algorithm that transfers only the changed parts, saving network bandwidth and optimizing transfer speeds. It is used for various purposes such as backups, mirroring, and file distribution.

Learn more

rsync-delete

rsync --delete: Synchronize with Source and Delete Target Files

The `--delete` option of the `rsync` command synchronizes the source and destination directories by deleting files in the destination that are not present in the source. This is useful for backups or mirroring when you want the destination directory to exactly match the source. As this is a powerful feature, extreme caution is advised when using it.

Learn more

rsync-dry-run

rsync-dry-run: Previewing rsync Operations

rsync-dry-run is a feature that simulates the execution of an rsync command without actually performing any file transfers or modifications. It shows you which files would be copied, deleted, or changed if the rsync command were run. This is typically implemented using the 'rsync -n' or 'rsync --dry-run' option. It's a crucial safety measure to prevent unexpected results before handling important data.

Learn more

rsync-exclude

rsync-exclude: Excluding Specific Files/Directories During File Synchronization

`rsync` is a powerful tool used for efficient file synchronization between local and remote systems. Specifically, the `--exclude` and `--exclude-from` options allow you to exclude specific files, directories, or items matching patterns from the synchronization target. This guide focuses on `rsync`'s exclusion capabilities, which are highly useful for preventing unnecessary file transfers and for backing up or copying only specific data.

Learn more

rsync-progress

rsync-progress: Display rsync Progress

`rsync-progress` refers to the method of visually displaying the progress of file synchronization using the `rsync` command. It is typically used through the `--progress` option of the `rsync` command, or as part of a shell script or alias that includes it. This is very useful for understanding the current transfer status, remaining time, and transfer speed when transferring large amounts of files.

Learn more

shred

shred: Securely delete file contents

The shred command is used to securely delete file contents by overwriting them multiple times, making them unrecoverable. While regular file deletion may leave data recoverable, shred is useful when dealing with sensitive information.

Learn more

split

split: Split Files into Smaller Pieces

The split command is used to split large files into smaller files based on size or line count. This is very useful when dealing with large files, transferring them over a network, or when you only need to process specific parts.

Learn more

stat

stat: Display file status in a user-defined format

The `stat` command displays detailed status information about a file or file system. In particular, using the `-c` (or `--format`) option allows you to extract file size, permissions, owner, time information, and more in a user-specified format, making it very useful for scripting and report generation.

Learn more

symlink

symlink: Create a Symbolic Link

The symlink command creates a symbolic link (soft link) to a file or directory. It acts as a pointer to the original file's location, and the link will be broken if the original file is deleted. While the `ln -s` command is more commonly used, the `symlink` utility offers fine-grained control over link creation through various additional options.

Learn more

tee

tee: Send standard input to files and standard output simultaneously

The tee command is a utility that reads standard input, outputs it to standard output, and simultaneously writes it to one or more files. It is commonly used to check intermediate results in pipelines or to save data to multiple files at once. The -a option is used to append to files instead of overwriting them.

Learn more
previous Page 4 / 5 Next