08/02/2018

[Tutorial] Basic Linux Administration Part - 1

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.
  • 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>
    Ubuntu 17.10.2

    Ubuntu 17.10.2
In above screenshots, you can see using mkdir command we created a new folder.

  • 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>
    Ubuntu 17.10.2
  • 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.
    Ubuntu 17.10.2

    Ubuntu 17.10.2
  •  touch : this command is used to create a blank/empty file. if you want to create an empty file just type touch <file name>  
    Ubuntu 17.10.2
    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.
    Ubuntu 17.10.2
      as you can see in above screenshot we created a sample file using cat > command.
    Ubuntu 17.10.2
    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.
    Ubuntu 17.10.2
    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. 
This is it for today's tutorial. In next segments, we will learn some more basic commands and some advance level commands too. Till then, stay tuned with us and have fun with Linux.

Hot Widget

#htmlcaption1 Switch To Linux Linux Brings Power #htmlcaption2 Thank You for being here! Stay Connected!