In Linux, file management commands are used to manage files and directories. Those who regularly work with the Linux operating system, whether they are users, system administrators, or developers, will find these commands invaluable.
Command | Description |
---|---|
ls | List files and directories |
cd | Change directory |
cp | Copy files and directories |
mv | Move (rename) files and directories |
rm | Remove files and directories |
mkdir | Create directories |
rmdir | Remove empty directories |
touch | Create an empty file or update the timestamp of an existing file |
chmod | Change permissions for files and directories |
chown | Change ownership of files and directories |
ln | Create links between files |
find | Search for files and directories based on various criteria |
locate | Find files and directories by name |
grep | Search for patterns in files |
head | Display the first few lines of the file |
tail | Display the last few lines of the file |
cat | Concatenate and display files |
more | Display the contents of the file one screen at a time |
less | Display the contents of the file one screen at a time, with more advanced features |
tar | Create or extract tar archives |
gzip | Compress or decompress files using gzip compression |
bzip2 | Compress or decompress files using bzip2 compression |