Basic Linux commands to Kickstart your Linux Journey

Basic Linux commands to Kickstart your Linux Journey

PART -1

We all use our Monitor and Mouse to access the files on our system, but in this Blog, we would learn how to use Linux to navigate through folders and files

Before jumping into Linux commands, we would define a few of the widely used terminologies

  1. Terminal Emulator --> It is a program that will let us use the terminal in a graphical way.

  2. Shell --> Shell in Linux is a command line interface that takes the commands as input and translates them to tell the Operating system, what task to perform. Ex-Bourne Shell, Bash Shell.

  3. Environment Variables --> These are named values that are used to change how the commands and processes are executed.

Note - You must have a Linux distribution Installed, Here I am using Ubuntu (Linux Subsystem for Windows)

IMPORTANT NOTE--

  • directory means Folder

  • .means current folder

  • ..means the previous folder

LINUX COMMANDS

  • ls- To list all the contents of the current folder
  • mkdir folder_name - To make a folder in the current directory

  • cd folder_name - To Move to the specified folder

  • cd .. - To exit the current directory and go back to the previous Directory
  • echo "text" - To Display text and variables on the terminal

  • echo $PATH - To display the path environment variable

  • ls -a -To see the hidden files in the current directory

  • cat file_name - To see the content of a file

  • pwd -Prints the current working directory

  • ls -l - To display all the details of the files and folders in the current directory

  • ls -al - To display all the details of the files and folders, along with the hidden files in the current directory

  • touch file_name - To create a file in the current directory

  • cp file copy_file - To copy the content of the first file into the second

  • mv file folder - To move a file into a folder

  • rm file - To delete the file permanently

image.png

image.png

Try these commands on your own and see the changes in your Working directory