SlideShare a Scribd company logo
1 of 4
Download to read offline
ls
normal user ( regular user )
root user
$
#
ubuntu --------------> root
su
sudo su root
_ _ _ _ _ _ _ _ _ _
3 types of permissions
read -- r
write --- w
execute -- x
_ _ _ _ _ _ _ _ _
owner group others
Numerical notation
Alphabetical notation
Numerical notation
-----------------------------
read -- 4
write -- 2
execute -- 1
f2 ---------- rw- rw- r--
f2 --------- rwx rw- r--
r + w +x -- 4 + 2 +1 = 7
7 -- all permissions
chmod 764 f2
chmod 777 f2
read -- 4
write -- 2
execute -- 1
0 - no permissions
1 -- execute
2 -- w
3 -- wx
4 -- r
5 - rx
6 - rw
7 - rwx
chmod 770 f2
chmod 666 f2
chmod 600 f2
chmod 456 f2
chmod 777 d1
++++++++++++++++++++++
Alphabetical notation
owner -- u
group -- g
others -- o
+
-
f2 ---------- r-- r-x rw-
f2 ---------- r-- r-x rwx
chmod o+x f2
f2 ---------- r-- r-x rwx
f2 -------- rw- rwx rwx
chmod u+w,g+w f2
chmod u-w,g-w f2
+++++++++++++++++++++++
f50 ------ rw- rw- r--
f50 ------ rw- --x r--
chmod g=x f50
+
-
=
d1
-------- d2
--------------d3
--------------------d4
++++++++++
The Pipe is a command in Linux that lets you use two or more commands,
such that output of one command serves as input to the next.
head -5 f2 | tail -1
date | wc -l
---------------------
An APT repository is a collection of packages
APT repository allows you to perform package install, removal, upgrade operations on individual packages.
tree d1
To install packages
apt-get install packagename
Step 1: Update apt repository
Step 2: Install the package
Syntax of Step 1: Update apt repository
sudo apt-get update
Syntax of Step 2: Install the required package
sudo apt-get install package_name
sudo apt-get install tree
To remove the package
sudo apt-get remove tree
-----------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Vi Editor
-------------
Basic editor in linux
To create a file
i - to go to insert mode
:wq -- save and exit
:q! -- exit without saving
Default mode - command mode
Esc - to come out of insert mode to command mode
dd - to delete a line
yy -- to copy the line
p - to paste below
++++++++++++++++++++++++++++++++++++++++++++++

More Related Content

Similar to linux commands.pdf

Similar to linux commands.pdf (20)

Rhel3
Rhel3Rhel3
Rhel3
 
Install tomcat 5.5 in debian os and deploy war file
Install tomcat 5.5 in debian os and deploy war fileInstall tomcat 5.5 in debian os and deploy war file
Install tomcat 5.5 in debian os and deploy war file
 
linux_Commads
linux_Commadslinux_Commads
linux_Commads
 
bash_1_2021-command line introduction.pdf
bash_1_2021-command line introduction.pdfbash_1_2021-command line introduction.pdf
bash_1_2021-command line introduction.pdf
 
Most frequently used unix commands for database administrator
Most frequently used unix commands for database administratorMost frequently used unix commands for database administrator
Most frequently used unix commands for database administrator
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformatics
 
Vagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopVagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptop
 
DNS Configure
DNS Configure DNS Configure
DNS Configure
 
Linux.pdf
Linux.pdfLinux.pdf
Linux.pdf
 
PHP selber bauen
PHP selber bauenPHP selber bauen
PHP selber bauen
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Supporting Debian machines for friends and family
Supporting Debian machines for friends and familySupporting Debian machines for friends and family
Supporting Debian machines for friends and family
 
Basics of-linux
Basics of-linuxBasics of-linux
Basics of-linux
 
Rpm Introduction
Rpm IntroductionRpm Introduction
Rpm Introduction
 
Docker practice
Docker practiceDocker practice
Docker practice
 
Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04
 
exercises-log-management-rsyslog.pdf
exercises-log-management-rsyslog.pdfexercises-log-management-rsyslog.pdf
exercises-log-management-rsyslog.pdf
 
Devops for beginners
Devops for beginnersDevops for beginners
Devops for beginners
 
Container Security
Container SecurityContainer Security
Container Security
 
Really useful linux commands
Really useful linux commandsReally useful linux commands
Really useful linux commands
 

More from JaveedAhamed7 (6)

vcs and git.pdf
vcs and git.pdfvcs and git.pdf
vcs and git.pdf
 
git amend.pdf
git amend.pdfgit amend.pdf
git amend.pdf
 
dotor.pdf
dotor.pdfdotor.pdf
dotor.pdf
 
git rebase.pdf
git rebase.pdfgit rebase.pdf
git rebase.pdf
 
linux commands1.pdf
linux commands1.pdflinux commands1.pdf
linux commands1.pdf
 
git branching.pdf
git branching.pdfgit branching.pdf
git branching.pdf
 

Recently uploaded

NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
Amil baba
 
edited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdfedited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdf
great91
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
acoha1
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives
23050636
 
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxAudience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Stephen266013
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
acoha1
 
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
yulianti213969
 
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
fztigerwe
 
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
ppy8zfkfm
 
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotecAbortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
pwgnohujw
 

Recently uploaded (20)

NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
 
edited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdfedited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdf
 
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
 
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
 
Formulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdfFormulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdf
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives
 
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxAudience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptx
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshare
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
 
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
 
社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction
 
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
 
Bios of leading Astrologers & Researchers
Bios of leading Astrologers & ResearchersBios of leading Astrologers & Researchers
Bios of leading Astrologers & Researchers
 
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
 
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeCredit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
 
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotecAbortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
 
What is Insertion Sort. Its basic information
What is Insertion Sort. Its basic informationWhat is Insertion Sort. Its basic information
What is Insertion Sort. Its basic information
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
 
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
 

linux commands.pdf

  • 1. ls normal user ( regular user ) root user $ # ubuntu --------------> root su sudo su root _ _ _ _ _ _ _ _ _ _ 3 types of permissions read -- r write --- w execute -- x _ _ _ _ _ _ _ _ _ owner group others Numerical notation Alphabetical notation Numerical notation ----------------------------- read -- 4 write -- 2 execute -- 1 f2 ---------- rw- rw- r-- f2 --------- rwx rw- r-- r + w +x -- 4 + 2 +1 = 7
  • 2. 7 -- all permissions chmod 764 f2 chmod 777 f2 read -- 4 write -- 2 execute -- 1 0 - no permissions 1 -- execute 2 -- w 3 -- wx 4 -- r 5 - rx 6 - rw 7 - rwx chmod 770 f2 chmod 666 f2 chmod 600 f2 chmod 456 f2 chmod 777 d1 ++++++++++++++++++++++ Alphabetical notation owner -- u group -- g others -- o + - f2 ---------- r-- r-x rw- f2 ---------- r-- r-x rwx
  • 3. chmod o+x f2 f2 ---------- r-- r-x rwx f2 -------- rw- rwx rwx chmod u+w,g+w f2 chmod u-w,g-w f2 +++++++++++++++++++++++ f50 ------ rw- rw- r-- f50 ------ rw- --x r-- chmod g=x f50 + - = d1 -------- d2 --------------d3 --------------------d4 ++++++++++ The Pipe is a command in Linux that lets you use two or more commands, such that output of one command serves as input to the next. head -5 f2 | tail -1 date | wc -l --------------------- An APT repository is a collection of packages APT repository allows you to perform package install, removal, upgrade operations on individual packages. tree d1 To install packages apt-get install packagename
  • 4. Step 1: Update apt repository Step 2: Install the package Syntax of Step 1: Update apt repository sudo apt-get update Syntax of Step 2: Install the required package sudo apt-get install package_name sudo apt-get install tree To remove the package sudo apt-get remove tree ----------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Vi Editor ------------- Basic editor in linux To create a file i - to go to insert mode :wq -- save and exit :q! -- exit without saving Default mode - command mode Esc - to come out of insert mode to command mode dd - to delete a line yy -- to copy the line p - to paste below ++++++++++++++++++++++++++++++++++++++++++++++