LINUX BASIC COMMANDS
GUI interface is the one that will give you the options we can figure it out you going to do. Now you are going to see some of the Linux basic commands.
In the terminal when you are working on the command line it assumes that you know what you want from it, therefore, it doesn’t offer a great deal of help when you are working on it.
so, be careful when you are working on the bash and GUI commands it might damage your systems.
Firstly when you see the prompt in the terminal it will show the who you are and it tells you exactly which computer you logged in too and you can see the ” ~ ” symbol that represents that you are in the HOME folder. Lastly, you can see the ” $ ” sign that represents that you are logged in as a standard user which means that you have regular privileges, you can not enter a command there and run it as administrator unless you add an another command or switch to administrators account which is known as ” root ” and this is the prompt tells you.
here are some commands you can see that where you are in the current directory and how to list out all files in the directory.
The basic command is “ ls ” which list out the all the files in the directory
Here are some basic commands that we will use frequently in the terminal
” ls -l ” or we can type it as ” ll ”
It will list all the files with permissions, size, month, date, time, the name of the file and it also shows that the file created by whom(root or user).
” ls -a ”
It will list out all the files that starting with ” . ” symbol. Where by this command we can list out even the hidden files in the directory.
” ls -lh ”
It will list the all the files which are there in the human readable format.
” ls -F ”
It will list all the files but it add ” / ” to the directory files
” ls -ltr ”
It will sort all the files and shows the all the files which are latest modified with all the content like name, date, time, permissions, and size.
” ls -lS ”
It will show the list of sorted files by size and also with all the other necessary parts
“ ls -n ”
It will show the UID(UserID) and GID(GroupID) of all the files.
Before we going to further, I want to give you some information about “root”
Root is the base of a file system in the both LINUX and UNIX machine and everything is in the root. In the root, there are so many files and directories, the one we used most is a home directory where all the users who have accounts on the computer have the files stored somewhere in it.
The another basic command is ” pwd ”
By this command, we can see ” Print the present Woking Directory “. It will tell you the ” Path ” presently where you are like it will start from the root to present working directory. It is an absolute path.
There is another path that is a relative path, by the example, you can get a clear idea on it.
” ls /home/godofsofs/Documents/ ” this is absolute path
” ls Documents/ ” this is relative path.
For more refer – GODOFSOFTS