Unix Commands

Unix Commands - Common Linux Commands Command Init 0...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Common Linux Commands Command Description Syntax Curriculum slide Init 0 Used by root to shutdown system $ init 0 2.1.4 Comments none Command Description Syntax Curriculum slide Shutdown Used by root to shutdown the system $ shutdown 2.1.4 Comments None Command Description Syntax Curriculum slide Passwd Change password $ passwd 2.1.5 Comments none Command Description Syntax Curriculum slide Man Displays page of UNIX programmers Manual for topic $ man [options] topic 4.3.2 Options -k keyword search by keyword -s section search by section Command Description Syntax Curriculum slide Pwd Print Working Directory $ pwd 4.3.3 Options None Command Description Syntax Curriculum slide Cd Change to directory $ cd directory 4.3.3 Options None
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Command Description Syntax Curriculum slide Whatis Display header line of topic from manual $ whatis topic 4.3.3 Options none Command Description Syntax Curriculum slide Ls List Files in Directory $ ls [options] directory 5.4.1 Options -a all files listed -l long listing -F list type -d list name of directory (not the contents) -R list contents of directory and its subdirectories -n Display UID and GID instead of names Command Description Syntax Curriculum slide Cal Displays calendar $ cal [month] year 5.3.1 Options Year Displays calendar for entire year Month Diisplayo calender for specified month of the year (month is year) Command Description Syntax Curriculum slide File Lists type of file name $ file name 6.1.2 Options None Command Description Syntax Curriculum slide Cat Displays contents of name $ cat name 6.1.3 Options None Command Description Syntax Curriculum slide Strings Displays readable characters of binary or executable file name $ strings name 6.1.2 Options None Command Description Syntax Curriculum slide More Display contents of name one screen at $ more name 6.1.3
Background image of page 2
a time Options none Command Description Syntax Curriculum slide Head Display the first 10 lines of name $ head [-n] name 6.1.4 Options -n Displays the first n lines Command Description Syntax Curriculum slide tail Display the last 10 lines of name $ tail [-+n] name 6.1.4 Comments -n Displays the last n lines +n Displays fom line n to the end of name Command Description Syntax Curriculum slide Comments Command Description Syntax Curriculum slide Wc Displays line, word and byte count of file1, file2,… $ wc [options] file1 [file2] 6.1.5 Options -l display number of lines -w number of words -c number of bytes -m number or characters Command Description Syntax Curriculum slide Diff Compare file1 and file2 $ diff [options] file1 file2 6.1.6 Options -i ignore case of letters -c perform detailed comparision Command Description Syntax Curriculum slide Touch Create empty file(s) file1, file2,… $ touch file1 file2 6.1.8 Options None
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Command Description Syntax
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/03/2008 for the course IT IT taught by Professor Freebourn during the Spring '07 term at Montana Tech.

Page1 / 11

Unix Commands - Common Linux Commands Command Init 0...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online