In this post, I have shared some basic Linux commands which are very use full for a terminal base user. Here I have shared File and System based commands. I hope these given below commands will be very use full into your development life.
ls [options] : Run this command without options, this will list the content of current directory into short form.
|–l||Show the list in format of permissions, ownership, size, and time and date stamp.|
|–a||Show the hidden file list.|
locate [Options]… Pattern… : Run this command without options, this will list the content with absolute path into whole system.
|Pattern||It can contains globbing characters. If any Pattern contains no globbing characters, locate behaves as if the pattern were *Pattern*.|
|–c||It give total count of founding result.|
|–n limit||It show only limited record as per mentioned limit with -n.|
|–i||Ignore case distinctions when matching patterns.|
|–h||Write a summary of the available options to standard output and exit sucessfully.|
cd : Change the directory, we can use this command by following ways.
|cd ..||Change to parent directory.|
|cd /||Change to root directory. This ‘/’ indicates relative to root.|
|cd ~||Change to the user’s home directory which is “/home/username”.|
|cd [directory_path]||Change into directory as per given directory path.|
pwd : Show the current directory path.
mkdir [new_directory_name]: Create a new directory.
rmdir [directory_name] : Remove the directory
mv [options].. source .. destination.. : This command rename the file from source to destination or move the source files to destination directory.
|-f||Do not prompt before overwriting existing files.|
|-i||Prompt before overwriting each existing destination file, regardless of the file’s permissions. If the answer to the prompt is negative, the file is skipped.|
|-n||Do not overwrite any existing file.|
|-u||Perform the move only if the SOURCE file is newer than the destination file, or the destination file does not already exist.|
|-t||Move all SOURCE arguments into destination directory.|