Responsive Ad Slot

Latest

latest

Linux Basic Command | Learn With Pirates

Thursday, 6 May 2021

/ by Captain Jay's

Chapter 3: Linux Basic Command



Hello and welcome back to the course. today we discuss some Linux command that helps us to make our task easy. I make this course for beginners so if you already know how to use Linux you can skip this part. 

Linux Terminal Command

In all the Linux based system you can do all the work from this powerful terminal.

pwd

pwd
pwd stands for the present working directory it shows which directory you work at the time. it prints the full path of your working directory.

ls

lsls -la # show all the informationls /path to show filesls /home # show home directory files
ls stands for a long list. ls command shows how many files are listed in the directory. ls -la is a command that shows all the basic information of files. you can show permission and show all the hidden file in the folder.

mkdir

In this section, we make a directory and change the directory with cd.

mkdir demo     # make directory cd demo        # change directory cd /path       # you go diectly with currect path cd ..          # for one step back to the file path nano demo.txt  # make file
You can make one file that name demo.txt with the nano command. 
Write as you wish and after you have to write with ctrl+o and enter. 

cat

cat demo.txt
We show what is in the file with the cat command. You can copy the file into your device home file system with this command.

mv

mv demo.txt /home/device/Download  # move to Downloadmv demo.txt /home/device/jay.txt   #rename 
You can rename with the mv command. you can also move file with the same command.
You can show the file permission

chmod

chmod +x jay.txt--- --- ---o   g   e     o= file owner              g= group member
              e= for all

r (read) = 4 w (write) = 2 x (execute) = 1 no permissions = 0# you can write as chmod 777 [file name] #give all the permissionchmod 600 #give permissionn to owner read and write else give                  nothing

We change permission using chmod command with options.

rm

rm -r jay.txtYou can remove any file in on any pathrm -r [path]

We can remove the file with the rm command.

man

man cp

The man command is amazing in Linux. the man command helps to how to use all command basically that guide how to use command.

Terimination

Thank you for coming to this site. If you Like this tutorial please share with your friend and family. I make an amazing tutorial in this blog. If you have any queries and question ask me in the comment section below.

Next Story Older Post Home

No comments

Post a Comment

Don't Miss
© all rights reserved
made with by templateszoo