0% found this document useful (0 votes)
182 views

Handwritten Cheatsheet

This document provides an introduction to Linux commands and the terminal. It lists and describes common Linux commands like mkdir, cd, ls, pwd, cat, echo, touch, cp, mv, rm, sudo, df, du, head, tail, diff, locate, find, chmod, chown, grep, history, alias, zip, unzip, hostname, useradd, userdel, lscpu, free, vmstat, top, uname, getent, lsof, nslookup, netstat, sed, cut, and htop. It also covers shells, environment variables, permissions, and basic terminal shortcuts.

Uploaded by

singhdev200311
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
182 views

Handwritten Cheatsheet

This document provides an introduction to Linux commands and the terminal. It lists and describes common Linux commands like mkdir, cd, ls, pwd, cat, echo, touch, cp, mv, rm, sudo, df, du, head, tail, diff, locate, find, chmod, chown, grep, history, alias, zip, unzip, hostname, useradd, userdel, lscpu, free, vmstat, top, uname, getent, lsof, nslookup, netstat, sed, cut, and htop. It also covers shells, environment variables, permissions, and basic terminal shortcuts.

Uploaded by

singhdev200311
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

24/1/22

Lntroduction to Linux andd Tecmindl Cammands

A ShelL A shell is a progran thatprouides the


traditional text- only user-intertace or inux or
other UNIX- like OpercutiagSyitem
S Command Lists_all the clicectonies_tiles

( ) mkdir Command akes a ne directaryL

cacommand Chanes dicector


cd command ao back to pre vious dicetery

Enuironment Variables Set ot dynamic named values


Set outside the proqrame ypicallyhrough tuncdian
alidy built inlo OS er micro sServtces

s acommand-ists hidden ilesSiartswidh

pwd command hes.ent werkinq Directery

As -k cammand Lsts iles uifh more details


s-R command- List a les ron Sub-dirs. ou

cat COmmand Shcuus content o a ile

Aecho commond Shows he desired strunq or value.

man £ommand allcomoands


)t_cs amand ile
Traasladesaile

for c a file txt


Hello arle
Cat file txtT4 a-2 A-2 2upper
Cat upper xt

HELLO MORLD-

touch command (reades a dile

p command Lopy Liles

my Command-_Mave les

r m commaad- emoues dile_pecmaneatly

epR_
RCommand epydirede
mv-R command Moe dicecdoru

R command ienoues_directonypecmaeatty

Sudo command tldniaistrativeCeunnaads Passuwccd)

d f command Disk Availabilits

du Command hows size ieecdocies


headcommand Displaydist O_Linea

tail command Dsplay lasto lines.


diff commasnd Couapares le line be line and prnt
the d4Lereaces
locate COmmand- FindsOut iles (reluns dicecdery)

8find command hows allpreseatiles (acc to cequiteme

Pecaissions ead WWcite Ex ecute

_chmad command- lo coatral permisSLOns


4read) + 2(write) +1 (execute)
for eq Chmad 77z indextxt
rugxrwx WX
chmod SI} _indentxt
Y- Xhwxrwox
chmadS00 Lndex txF_

|chousn_command To change the ile_cuwnergroup

P-COmmad- Searhien o stcin_in qcaups ot diles

completes the _uword)


tgnore s case-Sensttivils
-n ltnenumber
searches in sub direckoriei fao)
- count fornumber of Ppearance )
- isis all files wifh hat string specihied

histor COmmand Histoy LOmand usoae

alias command Instruels shel do replace etrin


wrh oyclher stripq glule exNeeudinytlhe_cemnand
Terminal Shorteuks:
Ctrl + A=Move cursor to dicst
ctr + E Move carsor to end
ctrit k-Kemoues everyhin- atder Cunscor.

ctr + U-_Kemosues everything


tab Auto-comple ion
no.in Hiator): Brinq he cemmand ren History-
ctrl+ R Search tor previous eommandsa.
Cmd +k-(lear

Sord command Serds everyihiaq within he ile

obs command frccesses unninganeshown

Command aanetsfo Server nd eecieves pachet


pingco
w g ecommand Downloa.der

top command cfware8 Runainq are shaien

uname Cammand Kecnel nane

zip cemmand- Creates_Compressed Aile

unzip command Cn2ips file

hostname command bbtain DNS name undintoratien

Useradd COmmand Adds LLSe

User del command Kemoves Lse


lscpu Command CPLL details

C ree command Free_memery Chechiag-

Vmstat Command iclua memery checkinq-

(*i command See OLAps

getent command Chechs itan user exist

Lsof Command List all the Open iiles

nslookup command la check IP_f a demain

netstat COmmand Activeports

Sed Command
Stream edifer laqs)

CutCommand Cud eut selected pcrtions c eoch lne


o a file
htop command Shows nesource CeAsamptinns

Opertors LL,
CAND)
L
(oR) (NOT)
S>(append)>(oueccide

You might also like