Basic Linux Commands

What is Linux

Linux is an operating system’s kernel.
It was created by Linus Torvalds from Scratch.
Linux is free and open-source, that means that you can simply change anything in Linux and redistribute it in your own name!
There are several Linux Distributions, commonly called “distros”.

Why and where is Linux used

Linux is Mainly used in servers.
About 90% of the internet is powered by Linux servers.
This is because Linux is fast, secure, and free!
The main problem of using Windows servers are their cost. This is solved by using Linux servers.
The OS that runs in about 80% of the smartphones in the world, Android, is also made from the Linux kernel.
Most of the viruses in the world run on Windows, but not on Linux!

Linux Shell or “Terminal”

So, basically, a shell is a program that receives commands from the user and gives it to the OS to process, and it shows the output. Linux’s shell is its main part. Its distros come in GUI (graphical user interface), but basically, Linux has a CLI (command line interface). In this tutorial, we are going to cover the basic commands that we use in the shell of Linux.

Linux Commands

Basic Commands

Tips and Tricks for Using Linux Command Line

  • You can use the clear command to clear the terminal if it gets filled up with too many commands.
  • TAB can be used to fill up in terminal. For example, You just need to type “cd Doc” and then TAB and the terminal fills the rest up and makes it “cd Documents”.
  • Ctrl+C can be used to stop any command in terminal safely. If it doesn’t stop with that, then Ctrl+Z can be used to force stop it.
  • You can exit from the terminal by using the exit command.
  • You can power off or reboot the computer by using the command sudo halt and sudo reboot.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store