In Linux and UNIX systems, data is organized into files. In fact, everything is considered a file, be it a file, directory, or symbolic link.
Files are typically organized into directories, and the directories are organized into a hierarchical filesystem structure with the root directory at the apex. All the files and directories can be referenced from this directory.
In Linux/ UNIX, there are typically 3 types of files:
- Regular Files – These are the most common files on a Linux system. These include configuration files, images, ordinary text files, binary files, and much more. They contain ASCII characters, program binaries, and much more.
- Directories – A directory is an equivalent of a folder in windows. It contains files. The uppermost directory is the root directory denoted with a forward slash
( / )
This contains all the files on a Linux system. - Special Files – These represent hardware devices. These include input/output devices such as hard drives, floppy disks, CD-ROMs, keyboards, and monitors. By convention, special files are stored in the /dev directory.
These Linux File Management series involve creating, copying, moving, renaming, searching, and deleting files. In addition, you can perform advanced tasks such as backup and recovering lost data, repairing corrupt files, and mounting and unmounting filesystems.
Linux Basic File Management
- How to Find Out File Creation Date and Time in Linux
- How to List or Sort All Files by Size in Linux
- How to View Files in Linux Using cat, more, or less Commands
- How to Check a File’s Age and Modification Time in Linux
- How to Change File Permissions in Linux Systems
- How to Create, View and Extract Archive Files (*.a) in Linux
- How to Extract a WAR File in Linux
- How to Swap Contents of Two Files in Linux
- How to Copy Directory Structure Without Files in Linux
- How to Check Video Files Formats in Linux
- How to Delete Files Listed in Another File in Linux
- The Fastest Way to Recursively Count Files in Linux
- How to Compare Two Files in Linux Terminal
- How to Compare Two Directories on Linux
- How to Copy a Large Number of Files in Linux
- How to Move a Large Number of Files in Linux
- How to Copy a File to Multiple Directories on Linux
- How to Join Two Text Files in Linux
- The lost+found Directory in Linux and UNIX
- How to View WebP Images in Linux
Linux Advance File Management
- How to Edit and Convert Binary Files on Linux
- How to Delete All Files in a Directory Except Few
- How to Determine the MIME Type of a File in Linux
- How to Remove Files with Specific Extensions in Linux
- How to Remove Line of Text from Multiple Files in Linux
- How to Recover Lost and Deleted Data in Linux
- Where Do Files Go When the rm Command is Issued?
- How to Mount a Remote Linux Filesystem Using SSHFS
- How to Mount and Unmount Filesystems in Linux
- How to Repair a Damaged Filesystem in Ubuntu
- How to Display Two Files Side by Side in Linux
- How to Join/Merge Multiple Audio Files into One in Linux
- How to Merge Multiple PDF Files into One PDF in Linux
- How to Merge PDF Files Using GUI & CLI Tools in Linux
- How to Convert or Merge Multiple Images to PDF in Linux
- What is /dev/sda in Linux File System?
- How to Extract Audio from Video Files Using Ffmpeg
Linux File Searching Operations
- How to Find and Rename Files in Linux
- How to Find Files with the fd Command in Linux
- How to Find Files Modified in the Last 24 Hours in Linux
- How to Find Files Containing Specific Text String in Linux
- How to Find Files Based on Timestamp in Linux
- How to Find and Delete Files Older Than Specified Days
- How to Exclude a Directory While Finding Files in Linux
- How to Find and Delete Empty Directories in Linux
- How to Find a String in a tar.gz Archive File in Linux
- How to Find and Limit File Name Length in Linux
- How to Find and Remove Duplicate Lines in a Text File
- How to Find the Longest Line(s) in a File in Linux
- How to Find the Total Size of a Directory in Linux
Linux File and System Backups
- How to Backup Linux Filesystem Using dump Command
- How to Backup Ext2, Ext3, or Ext4 File Systems in Linux
- How to Perform a Remote Linux Backup Using SSH
- How to Use Timeshift to Backup and Restore Linux
- How to Backup All MySQL Databases from Command Line
- How to Rsync Files Between Two Linux Servers Automatically
- How to Backup Large (100GB+) Files Faster in Linux