A lot of people find Linux more challenging as an operating system especially when they are coming from the comfort of using Windows or macOS. Here, I'm presenting you the basic but very important Linux commands to give you an in-depth knowledge of how to use your Linux terminal.
cp source_file destination_file
The cp command copies files. The copy is completely independent of the original. You can either copy one file to another, or copy arbitrarily many files to a destination directory.
If the destination file is not present cp will create a new file. If the destination file is present cp will overwrite the file.
cp -R source_dir destintion_dir
The cp command with -R copies directories. The copy is completely independent of the original. You can either copy one directory to another, or copy arbitrarily many directories to a destination directory.
mv source_file destination_file
mv stands for move. mv is used to move one or more files or directories from one place to another in a file system. It has two distinct functions:
(i) It renames a file or folder.
(ii) It moves a group of files to a different directory.
This command is used to list directory contents of files and directories.
This command is used to see long listing informationof files/directories.
This command is used to see the files (visible and hidden).
This command is used to see the size of the files in human readable format.
This command is used to see the inode numbers of the files.
This command is used to see the files based on their time stamps
This command is used to see the files after reversing the time stamps i.e., older files first.
This command is used to see the files recursively present in a directory.
The key is to use these commands more often in your daily activities. Once you master these commands, it becomes your best ally, and you won’t regret choosing it as your daily driver.
One of the remarkable things about Linux is that even if you’re an experienced user, you’ll never stop learning to be more productive using it.
There are a lot more helpful Linux commands. If we’ve left something out, please share your favorite Linux commands in the comments below!
Community and Social Footprints :
Did you find this article valuable?
Support Cloudnloud Tech Community by becoming a sponsor. Any amount is appreciated!