# Linux Command Line for Beginners

The [Linux](https://www.linux.com/what-is-linux/) command line is for power users. It is not for the faint of heart or for people who are afraid to take a risk. 

If you are new to Linux and are afraid to take the plunge into using the command line interface, then [this tutorial](practicelinux.com/) is a good start. 

## What is Linux and CLI? :computer:

Linux is an open source operating system that is used on everything from smart phones to main frame computers. 

Linux provides a command line interface (CLI) that provides a quick and powerful way to control and manipulate your computer. Once mastered, the Linux CLI can save you time and provide a powerful tool to aid in your daily tasks.

## Commands

The command line can be intimidating but learning the basics will give you access to a world of scripts and automation tools that will make your life a lot easier and more productive.

The Basics: You will be using the command line to type various commands and tasks. Commands are what Linux runs. In Linux, the Command Line can be used for various things.

![cat enters pc](https://cdn.hashnode.com/res/hashnode/image/upload/v1622019688226/4xmBYsWYS.gif)

To start, open up a terminal. Now, let's try using some basic Linux commands! 

Most of these commands are applicable for all Linux distributions. Linux is case sensitive (capitalization matters).


**Navigation**

`ls`	 List directory
`cd DIR` Change the current directory to the DIR directory
`cd ~`	 Change to home directory
`cd /`  	 Change the current directory to the root directory
`cd ..`	 Go one directory lower
`pwd`	 Show name of current working directory 

**File Commands**

`mkdir -p DIR` Create directory DIR 
`rm FILE` Remove FILE
`rm -r DIR` Remove DIR and its contents recursively
`rm -f FILE` Force remove FILE 

**System Info**

`date`	 Print or set the system date and time
`cal`	 Displays a calendar
`uptime` Tell how long the system has been running
`w` 	 Show who is logged on and what they are doing
`whoami`  Print effective userid 

