SlideShare a Scribd company logo
1 of 4
Download to read offline
Command/Syntax

Unix Commands
What it will do

awk/nawk [options] file

scan for patterns in a file and process the results

cat [options] file

concatenate (list) a file

cd [directory]

change directory

chgrp [options] group file change the group of the file
chmod [options] file

change file or directory access permissions

chown [options] owner file

change the ownership of a file; can only be done by the
superuser

chsh (passwd -e/-s)
username login_shell

change the user's login shell (often only by the superuser)

cmp [options] file1 file2

compare two files and list where differences occur (text or
binary files)

compress [options] file

compress file and save it as file.Z

cp [options] file1 file2

copy file1 into file2; file2 shouldn't already exist. This
command creates or overwrites file2.

cut (options) [file(s)]

cut specified field(s)/character(s) from lines in file(s)

date [options]

report the current date and time

dd [if=infile] [of=outfile]
[operand=value]

copy a file, converting between ASCII and EBCDIC or
swapping byte order, as specified

diff [options] file1 file2

compare the two files and display the differences (text files
only)

df [options] [resource]

report the summary of disk blocks and inodes free and in use

du [options] [directory or
report amount of disk space in use
file]
echo [text string]

echo the text string to stdout

ed or ex [options] file

Unix line editors

emacs [options] file

full-screen editor

expr arguments

evaluate the arguments. Used to do arithmetic, etc. in the
shell.

file [options] file

Classify the file type

find directory [options]
[actions]

find files matching a type or pattern

finger [options]
user[@hostname]

report information about users on local and remote machines

ftp [options] host

Transfer file(s) using file transfer protocol

grep [options] 'search
string' argument

search the argument (in this case probably a file) for all
occurrences of the search string, and list them.
egrep [options] 'search
string' argument
fgrep [options] 'search
string' argument
gzip [options] file
gunzip [options] file

compress or uncompress a file. Compressed files are stored
with a .gz ending

zcat [options] file
head [-number] file

display the first 10 (or number of) lines of a file

hostname

display or set (super-user only) the name of the current
machine

kill [options] [-SIGNAL]
[pid#] [%job]

send a signal to the process with the process id number
(pid#) or job control number (%n). The default signal is to
kill the process.

ln [options] source_file
target

link the source_file to the target

lpq [options]
show the status of print jobs
lpstat [options]
lpr [options] file
print to defined printer
lp [options] file
lprm [options]
Remove a print job from the print queue
cancel [options]
ls [options] [directory or
file]

list directory contents or file permissions

mail [options] [user]
mailx [options] [user]

simple email utility available on Unix systems. Type a
period as the first character on a new line to send message
out, question mark for help.

Mail [options] [user]
man [options] command

show the manual (man) page for a command

mkdir [options] directory make a directory
More [options] file
less [options] file
pg [options] file

page through a text file
mv [options] file1 file2

move file1 into file2

od [options] file

octal dump a binary file, in octal, ASCII, hex, decimal, or
character mode.

passwd [options]

set or change your password

Paste [options] file

paste field(s) onto the lines in file

pr [options] file

filter the file and print it on the terminal

ps [options]

show status of active processes

pwd

print working (current) directory

rcp [options] hostname

remotely copy files from this machine to another machine

rlogin [options] hostname login remotely to another machine
rm [options] file

remove (delete) a file or directory (-r recursively deletes the
directory and its contents) (-i prompts before removing files)

rmdir [options] directory remove a directory
rsh [options] hostname

remote shell to run on another machine

script file

saves everything that appears on the screen to file until exit
is executed

sed [options] file

stream editor for editing files from a script or from the
command line

sort [options] file

sort the lines of the file according to the options chosen

source file
. file

read commands from the file and execute them in the
current shell. source: C shell, .: Bourne shell.

strings [options] file

report any sequence of 4 or more printable characters ending
in <NL> or <NULL>. Usually used to search binary files for
ASCII strings.

stty [options]

set or display terminal control options

tail [options] file

display the last few lines (or parts) of a file

tar key[options] [file(s)]

tape archiver--refer to man pages for details on creating,
listing, and retrieving from archive files. Tar files can be
stored on tape or disk.

tee [options] file

copy stdout to one or more files

telnet [host [port]]

communicate with another host using telnet protocol

Touch [options] [date] file

create an empty file, or update the access time of an existing
file

tr [options] string1 string2

translate the characters in string1 from stdin into those in
string2 in stdout

uncompress file.Z

uncompress file.Z and save it as a file

uniq [options] file

remove repeated lines in a file
uudecode [file]

decode a uuencoded file, recreating the original file

uuencode [file] new_name

encode binary file to 7-bit ASCII, useful when sending via
email, to be decoded as new_name at destination

vi [options] file

visual, full-screen editor

wc [options] [file(s)]

display word (or character or line) count for file(s)

whereis [options]
command

report the binary, source, and man page locations for the
command named

which command

reports the path to the command or the shell alias in use

who or w

report who is logged in and what processes are running

zcat file.Z

concatenate (list) uncompressed file to screen, leaving file
compressed on disk

Quick List:
WHO,PWD,LS
HEAD,MORE, TAIL
PS, KILL
Ed, Sed, Vi
DU, WC
GREP, AWK, FTP, TELNET

More Related Content

What's hot

Course 102: Lecture 6: Seeking Help
Course 102: Lecture 6: Seeking HelpCourse 102: Lecture 6: Seeking Help
Course 102: Lecture 6: Seeking HelpAhmed El-Arabawy
 
Basic basic solaris quick referent card
Basic basic solaris quick referent cardBasic basic solaris quick referent card
Basic basic solaris quick referent cardBui Van Cuong
 
Course 102: Lecture 17: Process Monitoring
Course 102: Lecture 17: Process Monitoring Course 102: Lecture 17: Process Monitoring
Course 102: Lecture 17: Process Monitoring Ahmed El-Arabawy
 
Course 102: Lecture 4: Using Wild Cards
Course 102: Lecture 4: Using Wild CardsCourse 102: Lecture 4: Using Wild Cards
Course 102: Lecture 4: Using Wild CardsAhmed El-Arabawy
 
Linux commands part -2
Linux commands part -2Linux commands part -2
Linux commands part -2bhatvijetha
 
Linux basic commands with examples
Linux basic commands with examplesLinux basic commands with examples
Linux basic commands with examplesabclearnn
 
Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersDavide Ciambelli
 
List command linux a z
List command linux a zList command linux a z
List command linux a zJinyuan Loh
 
Unix command
Unix commandUnix command
Unix commandAtul Pant
 
Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commandsswtjerin4u
 

What's hot (15)

Course 102: Lecture 6: Seeking Help
Course 102: Lecture 6: Seeking HelpCourse 102: Lecture 6: Seeking Help
Course 102: Lecture 6: Seeking Help
 
Basic basic solaris quick referent card
Basic basic solaris quick referent cardBasic basic solaris quick referent card
Basic basic solaris quick referent card
 
Prabu linux
Prabu linuxPrabu linux
Prabu linux
 
Course 102: Lecture 17: Process Monitoring
Course 102: Lecture 17: Process Monitoring Course 102: Lecture 17: Process Monitoring
Course 102: Lecture 17: Process Monitoring
 
Course 102: Lecture 4: Using Wild Cards
Course 102: Lecture 4: Using Wild CardsCourse 102: Lecture 4: Using Wild Cards
Course 102: Lecture 4: Using Wild Cards
 
Linux commands part -2
Linux commands part -2Linux commands part -2
Linux commands part -2
 
Linux basic commands with examples
Linux basic commands with examplesLinux basic commands with examples
Linux basic commands with examples
 
Linux
LinuxLinux
Linux
 
Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for Beginners
 
List command linux a z
List command linux a zList command linux a z
List command linux a z
 
Unix command
Unix commandUnix command
Unix command
 
Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commands
 
Linux cheat-sheet
Linux cheat-sheetLinux cheat-sheet
Linux cheat-sheet
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 

Viewers also liked

Linux Command Line Basics
Linux Command Line BasicsLinux Command Line Basics
Linux Command Line BasicsWe Ihaveapc
 
Linux Command Suumary
Linux Command SuumaryLinux Command Suumary
Linux Command Suumarymentorsnet
 
Java For beginners and CSIT and IT students
Java  For beginners and CSIT and IT studentsJava  For beginners and CSIT and IT students
Java For beginners and CSIT and IT studentsPartnered Health
 
Unix command line concepts
Unix command line conceptsUnix command line concepts
Unix command line conceptsArtem Nagornyi
 
Unix commands in etl testing
Unix commands in etl testingUnix commands in etl testing
Unix commands in etl testingGaruda Trainings
 
Basic command ppt
Basic command pptBasic command ppt
Basic command pptRohit Kumar
 
Linux Introduction (Commands)
Linux Introduction (Commands)Linux Introduction (Commands)
Linux Introduction (Commands)anandvaidya
 
Unix command-line tools
Unix command-line toolsUnix command-line tools
Unix command-line toolsEric Wilson
 
Linux command ppt
Linux command pptLinux command ppt
Linux command pptkalyanineve
 
Top 100 Linux Interview Questions and Answers 2014
Top 100 Linux Interview Questions and Answers 2014Top 100 Linux Interview Questions and Answers 2014
Top 100 Linux Interview Questions and Answers 2014iimjobs and hirist
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt onu9
 

Viewers also liked (16)

Linux Command Line Basics
Linux Command Line BasicsLinux Command Line Basics
Linux Command Line Basics
 
Unix
UnixUnix
Unix
 
Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commands
 
Linux Command Suumary
Linux Command SuumaryLinux Command Suumary
Linux Command Suumary
 
Java For beginners and CSIT and IT students
Java  For beginners and CSIT and IT studentsJava  For beginners and CSIT and IT students
Java For beginners and CSIT and IT students
 
Java Notes
Java NotesJava Notes
Java Notes
 
Unix command line concepts
Unix command line conceptsUnix command line concepts
Unix command line concepts
 
Unix commands in etl testing
Unix commands in etl testingUnix commands in etl testing
Unix commands in etl testing
 
Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
 
Linux Introduction (Commands)
Linux Introduction (Commands)Linux Introduction (Commands)
Linux Introduction (Commands)
 
Unix command-line tools
Unix command-line toolsUnix command-line tools
Unix command-line tools
 
Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
 
Core java complete notes - Contact at +91-814-614-5674
Core java complete notes - Contact at +91-814-614-5674Core java complete notes - Contact at +91-814-614-5674
Core java complete notes - Contact at +91-814-614-5674
 
Java SE 8 best practices
Java SE 8 best practicesJava SE 8 best practices
Java SE 8 best practices
 
Top 100 Linux Interview Questions and Answers 2014
Top 100 Linux Interview Questions and Answers 2014Top 100 Linux Interview Questions and Answers 2014
Top 100 Linux Interview Questions and Answers 2014
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt
 

Similar to Unix short (20)

Linux comands for Beginners
Linux comands for BeginnersLinux comands for Beginners
Linux comands for Beginners
 
Raj linux
Raj linux Raj linux
Raj linux
 
Prabu linux
Prabu linuxPrabu linux
Prabu linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 
Applecmdlista zs
Applecmdlista zsApplecmdlista zs
Applecmdlista zs
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
 
An a z index of the bash commands
An a z index of the bash commandsAn a z index of the bash commands
An a z index of the bash commands
 
Linux com
Linux comLinux com
Linux com
 
Lesson 3 Working with Files in Linux
Lesson 3 Working with Files in LinuxLesson 3 Working with Files in Linux
Lesson 3 Working with Files in Linux
 
Linux
LinuxLinux
Linux
 

More from Sunil Kumar Gunasekaran

Sample Technical Requirement Document (TRD)
Sample Technical Requirement Document (TRD)Sample Technical Requirement Document (TRD)
Sample Technical Requirement Document (TRD)Sunil Kumar Gunasekaran
 
Sql commands worked out in sql plus with screen shots
Sql commands worked out in sql plus with screen shotsSql commands worked out in sql plus with screen shots
Sql commands worked out in sql plus with screen shotsSunil Kumar Gunasekaran
 
Business Requirements Document for Acounts Payable System
Business Requirements Document for Acounts Payable SystemBusiness Requirements Document for Acounts Payable System
Business Requirements Document for Acounts Payable SystemSunil Kumar Gunasekaran
 
Test Life Cycle - Presentation - Important concepts covered
Test Life Cycle - Presentation - Important concepts coveredTest Life Cycle - Presentation - Important concepts covered
Test Life Cycle - Presentation - Important concepts coveredSunil Kumar Gunasekaran
 
PERL for QA - Important Commands and applications
PERL for QA - Important Commands and applicationsPERL for QA - Important Commands and applications
PERL for QA - Important Commands and applicationsSunil Kumar Gunasekaran
 
JAVA Notes - All major concepts covered with examples
JAVA Notes - All major concepts covered with examplesJAVA Notes - All major concepts covered with examples
JAVA Notes - All major concepts covered with examplesSunil Kumar Gunasekaran
 
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...Java programs - bubble sort, iterator, linked list, hash set, reverse string,...
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...Sunil Kumar Gunasekaran
 
Fitnesse user acceptance test - Presentation
Fitnesse   user acceptance test - PresentationFitnesse   user acceptance test - Presentation
Fitnesse user acceptance test - PresentationSunil Kumar Gunasekaran
 

More from Sunil Kumar Gunasekaran (20)

CQL - Cassandra commands Notes
CQL - Cassandra commands NotesCQL - Cassandra commands Notes
CQL - Cassandra commands Notes
 
Java J2EE Complete Syllabus Checklist
Java J2EE Complete Syllabus ChecklistJava J2EE Complete Syllabus Checklist
Java J2EE Complete Syllabus Checklist
 
Amazon search test case document
Amazon search test case documentAmazon search test case document
Amazon search test case document
 
Actual test case document
Actual test case documentActual test case document
Actual test case document
 
Sample Technical Requirement Document (TRD)
Sample Technical Requirement Document (TRD)Sample Technical Requirement Document (TRD)
Sample Technical Requirement Document (TRD)
 
Sql reference from w3 schools
Sql reference from w3 schools Sql reference from w3 schools
Sql reference from w3 schools
 
Sql commands worked out in sql plus with screen shots
Sql commands worked out in sql plus with screen shotsSql commands worked out in sql plus with screen shots
Sql commands worked out in sql plus with screen shots
 
Wells fargo banking system ER Diagram
Wells fargo banking system ER DiagramWells fargo banking system ER Diagram
Wells fargo banking system ER Diagram
 
Business Requirements Document for Acounts Payable System
Business Requirements Document for Acounts Payable SystemBusiness Requirements Document for Acounts Payable System
Business Requirements Document for Acounts Payable System
 
Automation Testing Syllabus - Checklist
Automation Testing Syllabus - ChecklistAutomation Testing Syllabus - Checklist
Automation Testing Syllabus - Checklist
 
Unix made easy
Unix made easyUnix made easy
Unix made easy
 
Test process - Important Concepts
Test process - Important ConceptsTest process - Important Concepts
Test process - Important Concepts
 
Testing http methods using Telnet
Testing http methods using TelnetTesting http methods using Telnet
Testing http methods using Telnet
 
Test Life Cycle - Presentation - Important concepts covered
Test Life Cycle - Presentation - Important concepts coveredTest Life Cycle - Presentation - Important concepts covered
Test Life Cycle - Presentation - Important concepts covered
 
Scrum writeup - Agile
Scrum writeup - Agile Scrum writeup - Agile
Scrum writeup - Agile
 
Scrum, V Model and RUP Models Overview
Scrum, V Model and RUP Models OverviewScrum, V Model and RUP Models Overview
Scrum, V Model and RUP Models Overview
 
PERL for QA - Important Commands and applications
PERL for QA - Important Commands and applicationsPERL for QA - Important Commands and applications
PERL for QA - Important Commands and applications
 
JAVA Notes - All major concepts covered with examples
JAVA Notes - All major concepts covered with examplesJAVA Notes - All major concepts covered with examples
JAVA Notes - All major concepts covered with examples
 
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...Java programs - bubble sort, iterator, linked list, hash set, reverse string,...
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...
 
Fitnesse user acceptance test - Presentation
Fitnesse   user acceptance test - PresentationFitnesse   user acceptance test - Presentation
Fitnesse user acceptance test - Presentation
 

Recently uploaded

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 

Recently uploaded (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 

Unix short

  • 1. Command/Syntax Unix Commands What it will do awk/nawk [options] file scan for patterns in a file and process the results cat [options] file concatenate (list) a file cd [directory] change directory chgrp [options] group file change the group of the file chmod [options] file change file or directory access permissions chown [options] owner file change the ownership of a file; can only be done by the superuser chsh (passwd -e/-s) username login_shell change the user's login shell (often only by the superuser) cmp [options] file1 file2 compare two files and list where differences occur (text or binary files) compress [options] file compress file and save it as file.Z cp [options] file1 file2 copy file1 into file2; file2 shouldn't already exist. This command creates or overwrites file2. cut (options) [file(s)] cut specified field(s)/character(s) from lines in file(s) date [options] report the current date and time dd [if=infile] [of=outfile] [operand=value] copy a file, converting between ASCII and EBCDIC or swapping byte order, as specified diff [options] file1 file2 compare the two files and display the differences (text files only) df [options] [resource] report the summary of disk blocks and inodes free and in use du [options] [directory or report amount of disk space in use file] echo [text string] echo the text string to stdout ed or ex [options] file Unix line editors emacs [options] file full-screen editor expr arguments evaluate the arguments. Used to do arithmetic, etc. in the shell. file [options] file Classify the file type find directory [options] [actions] find files matching a type or pattern finger [options] user[@hostname] report information about users on local and remote machines ftp [options] host Transfer file(s) using file transfer protocol grep [options] 'search string' argument search the argument (in this case probably a file) for all occurrences of the search string, and list them.
  • 2. egrep [options] 'search string' argument fgrep [options] 'search string' argument gzip [options] file gunzip [options] file compress or uncompress a file. Compressed files are stored with a .gz ending zcat [options] file head [-number] file display the first 10 (or number of) lines of a file hostname display or set (super-user only) the name of the current machine kill [options] [-SIGNAL] [pid#] [%job] send a signal to the process with the process id number (pid#) or job control number (%n). The default signal is to kill the process. ln [options] source_file target link the source_file to the target lpq [options] show the status of print jobs lpstat [options] lpr [options] file print to defined printer lp [options] file lprm [options] Remove a print job from the print queue cancel [options] ls [options] [directory or file] list directory contents or file permissions mail [options] [user] mailx [options] [user] simple email utility available on Unix systems. Type a period as the first character on a new line to send message out, question mark for help. Mail [options] [user] man [options] command show the manual (man) page for a command mkdir [options] directory make a directory More [options] file less [options] file pg [options] file page through a text file
  • 3. mv [options] file1 file2 move file1 into file2 od [options] file octal dump a binary file, in octal, ASCII, hex, decimal, or character mode. passwd [options] set or change your password Paste [options] file paste field(s) onto the lines in file pr [options] file filter the file and print it on the terminal ps [options] show status of active processes pwd print working (current) directory rcp [options] hostname remotely copy files from this machine to another machine rlogin [options] hostname login remotely to another machine rm [options] file remove (delete) a file or directory (-r recursively deletes the directory and its contents) (-i prompts before removing files) rmdir [options] directory remove a directory rsh [options] hostname remote shell to run on another machine script file saves everything that appears on the screen to file until exit is executed sed [options] file stream editor for editing files from a script or from the command line sort [options] file sort the lines of the file according to the options chosen source file . file read commands from the file and execute them in the current shell. source: C shell, .: Bourne shell. strings [options] file report any sequence of 4 or more printable characters ending in <NL> or <NULL>. Usually used to search binary files for ASCII strings. stty [options] set or display terminal control options tail [options] file display the last few lines (or parts) of a file tar key[options] [file(s)] tape archiver--refer to man pages for details on creating, listing, and retrieving from archive files. Tar files can be stored on tape or disk. tee [options] file copy stdout to one or more files telnet [host [port]] communicate with another host using telnet protocol Touch [options] [date] file create an empty file, or update the access time of an existing file tr [options] string1 string2 translate the characters in string1 from stdin into those in string2 in stdout uncompress file.Z uncompress file.Z and save it as a file uniq [options] file remove repeated lines in a file
  • 4. uudecode [file] decode a uuencoded file, recreating the original file uuencode [file] new_name encode binary file to 7-bit ASCII, useful when sending via email, to be decoded as new_name at destination vi [options] file visual, full-screen editor wc [options] [file(s)] display word (or character or line) count for file(s) whereis [options] command report the binary, source, and man page locations for the command named which command reports the path to the command or the shell alias in use who or w report who is logged in and what processes are running zcat file.Z concatenate (list) uncompressed file to screen, leaving file compressed on disk Quick List: WHO,PWD,LS HEAD,MORE, TAIL PS, KILL Ed, Sed, Vi DU, WC GREP, AWK, FTP, TELNET