Hi guys, as we promised in the last announcement tutorials will make their way in like before. We are going to start a series of tutorials which will include different processes, how-to, tips for making it easy to learn about Linux. For the starters, we are going to start with basic Linux administration. This will help you to do many tasks on Linux in a simpler way. Also, it will be more helpful in learning the traditional way of using Linux.
In this tutorial, we will learn about some basic command lines which are helpful in day to day life.
In this tutorial, we will learn about some basic command lines which are helpful in day to day life.
- mkdir : This command is used for making new directory or folder. To create a new folder all you need to do is open up your terminal and type in mkdir <directory name>
- rmdir : this command is used for removing an existing directory or folder. But there is a condition, the directory should be empty for this command to work. to remove a certain directory you should type in terminal rmdir <directory name>
- rm -rf : Sometimes the directory you need remove is not empty. In that case simple doing rmdir will return with an error. You will have to use rm -rf command if directory is not empty.
- touch : this command is used to create a blank/empty file. if you want to create an empty file just type touch <file name> in above screenshot, we created an empty file inside our previously created folder using touch command.
- cat : this command can be used for two purposes. First purpose is to read the content of files in given directory. Second purpose is to create a read only file in given directory. To create a new file you will have to use command cat > <file name> and after you press enter it will prompt you to write something in file. Once you done with writing part just press ctrl+d to save your file. as you can see in above screenshot we created a sample file using cat > command. Now we need to read what is written in the file we created earlier. So, we just entered cat <file name> to read what is written on given file.
- ls : this command is short for list. using this command you can get a list of folders and files inside them. In above screenshot, we created a sample folder and file inside LOL directory. Then we entered ls command to check what is inside the directory. the white colored result shows file blue colored results shows folder.