Linus Benedict Torvalds is the creator and, historically, the principal developer of the Linux kernel, which is the kernel for GNU/Linux operating systems.
Many of us think that Linux is an OS but the fact is that it is not, Linux is a kernel which is essential part of computer .Linux Distributions such as ubuntu, centos ,kali Linux are OS which are based on Linux Kernel .Now we are clear with what is Linux and another thing we should know is about GUI and CLI. Many times we have heard GUI but what actually is GUI. GUI stands for Graphical User Interface .And CLI stands for Cmd Line Interface. In GUI we Use our mouse to do a particular task. And in CLI instead of mouse we use cmds to do that task. Windows OS uses GUI as it is easy to operate. And Linux is a Command Line Os where we have to write cmds to perform a particular task.
- Basic Linux Commands :
- uname : to get the name of distro that you are using.
- touch : to create new file. eg touch "file name".
- mkdir : to create new directory. eg mkdir "dic name".
- rm : to delete a file.
- rmdir :to delete a directory
- ls : to list the files/directories present the a directory.
- cd : to change the directory .eg cd home/kali/Desktop.
- pwd : print the present working directory.
- clear : clear the screen.
- history : print the history
- ifconfig : print the ip address of the machine.
- cp : copy a file.eg cp "file name".
- mv : move a file or directory eg mv "location where to move".
- grep : search for string of characters.
- less : display content of a file.
- cat : to read a file.
- cat > : read + write.
- vim : text editor
- nano : text editor in kali.
- chmod : to change or edit the permission of a file.
- echo : to print the input given by you. eg echo Im best.
- su : switch user.
- adduser : to add a new user.
- sudo : to get root privileges.
- -apt -get update && apt -get upgrade : to update/upgrade the system.
- man : to get manual of a file/directory/application. eg man ls.
- exit : to exit the terminal.
- shutdown : shutdowns the machine.
- reboot : Reboots the system
- logout : logout the present user.