Here are some common file management tools and commands in Linux:
-
cp: Used to copy files and directories. For example,cp source.txt destination.txtcopiessource.txttodestination.txt. -
mv: Used to move or rename files and directories. For example,mv oldname.txt newname.txtrenames the file. -
rm: Used to remove files and directories. For example,rm filename.txtdeletesfilename.txt. -
ls: Lists files and directories in the current directory. You can use options like-lfor detailed information or-ato show hidden files. -
mkdir: Creates new directories. For example,mkdir new_directorycreates a directory namednew_directory. -
rmdir: Removes empty directories. For example,rmdir empty_directorydeletes the specified empty directory. -
find: Searches for files and directories based on various criteria. For example,find /path -name "*.txt"finds all.txtfiles in the specified path. -
tar: Used to create and manipulate archive files. For example,tar -cvf archive.tar directory/creates an archive of the specified directory. -
gzip/gunzip: Used to compress and decompress files, respectively. For example,gzip file.txtcompressesfile.txt.
These tools are essential for efficient file management and navigation in Linux environments.
