This appendix is a quick reference for essential UNIX/Linux utilities available

Size: px
Start display at page:

Download "This appendix is a quick reference for essential UNIX/Linux utilities available"

Transcription

1 APPENDIX B SYNTAX GUIDE TO UNIX/LINUX COMMANDS This appendix is a quick reference for essential UNIX/Linux utilities available on most systems. lists the commands alphabetically, including the command name, its purpose, and useful options. Table B-2 lists the UNIX/Linux utilities by category. Table B-3 summarizes the vi editor commands, and Table B-4 summarizes the Emacs editor commands. The UNIX/Linux command syntax uses the format diagrammed in Figure B-1. $ command [-options] arguments File names or paths Single-letter options, preceded by a minus sign Figure B-1 Command syntax format Command name System prompt For example, to use the ls command to see a directory s contents and use the -a option to view hidden files plus the -l option to view a long listing of file detail, you would enter: ls -al or ls -a -l In another example, to make a backup copy using the cp command of the file myorginalfile.txt to the file clonecopy.txt (where the file names are arguments), you would enter: cp myorginalfile.txt clonecopy.txt 625

2 626 Appendix B Syntax Guide to UNIX/Linux Commands Common UNIX/Linux commands alias Creates an alias for a command Include in the.bashrc file for access each time you log in; example: alias dir= ls -1. -p prints all aliases. awk cal cat cd chmod Starts the Awk program to format output Shows the system calendar for a specified year or month Creates files, concatenates files, or can be used to display the contents of files Changes directories Changes security mode of a file or directory (r: read, w: write, x: executable); sets file permissions for specified users (u: user, g: group, o: others, a: all) -f indicates code is coming from a disk file, not the keyboard. -F specifies the field separator. -1 shows a single month. -3 shows three months beginning with the previous month. -j displays the calendar in Julian date format. -s shows Sunday as the first day in the week. -m shows Monday as the first day in the week. -y shows all of the months for the current year. cat -n displays line numbers. cat filename displays the contents of a file. cat > filename creates a new file or enables you to overwrite the contents of an existing file. cat >> filename creates a new file or enables you to add information to an existing file. cat file1 file2 > file3 concatenates two existing files into one new file. cd by itself takes the user to his home directory.. Changes to the current working directory... Changes to the parent directory. + assigns permissions. - removes permissions. chmod a+x sets the execute bit for owner, group, and other (all). clear Clears the screen Commonly aliased to cls; see the alias command. comm Compares sorted files and shows differences comm file1 file2 compares the files line by line. -1 does not display unique lines in the first file. -2 does not display unique lines in the second file. -3 does not display unique lines in both files.

3 Syntax Guide to UNIX/Linux Commands 627 Common UNIX/Linux commands (continued) cp Copies files from one directory to another -b makes a backup of the destination file, if an original one already exists (so you have a backup if overwriting a file). -i requests confirmation if the target file already exists. -r copies directories to a new directory. -s creates a symbolic link or name at the destination rather than a physical file. -u overwrites an existing file only if the source is newer than the file in the current destination. cut date diff Selects and extracts specified columns or fields from a file Displays the system date Compares and selects differences in two files or directories. (dot) Represents the current directory (the. is a link to the inode for the current directory).. (dot dot) Represents the parent directory (the.. is a link to the inode for the parent directory) echo Displays the specified arguments on the output device emacs Starts the Emacs editor exit or logout Logs out of your current session -c specifies the character position. -d specifies the field separator. -f specifies the field position. -u displays the time in Greenwich Mean Time. diff /dir1 /dir2 compares the file entries in both directories and shows only the missing files for each directory. -b ignores blanks that repeat. -B does not compare for blank lines. -i ignores case. -c shows lines surrounding the line that differs (for context). -y displays the differences side-by-side in columns. Used mostly in specifying that something happened in the current directory; for example, cp /dir/file. copies the file to the current directory. Used for changing to a different directory, either the parent of the current (cd..) or up one directory and down a different tree (cd../dir2/dir3). echo $VAR, where VAR is the variable name, echoes the data from an environment variable to standard output; can also be used in scripts and programs. Ctrl+d also logs the user out of a session or a subshell and back to the parent shell. B

4 628 Appendix B Syntax Guide to UNIX/Linux Commands Common UNIX/Linux commands (continued) export Makes a variable an environment variable; and exports a specified list of variables to other shells -n can be used to undo the export. -p lists the exported variables. find fuser grep head history Locates files that match a given value Displays the process ID (PID) of processes using a given resource Selects lines or rows that match a specified pattern Displays the first few lines of a file Lists all the commands contained in the bash history file -amin n finds files accessed more recently than n minutes ago. -atime n finds files last accessed n*24 hours ago. -fstype type finds files that exist only on the specified file system type, such as ext3. -iname pattern finds files with names that match a pattern. -inum inode# finds files with inodes that match inode. -name specifies the name of the files you want to locate but the search is case sensitive. -mmim m displays files that have been changed within the last n minutes. -mtime n displays files that have been changed within the last n days. -size n displays files of size n. -user uname finds files owned by user matching uname. Useful for finding which users have mounted a drive that needs maintenance; for example, fuser vu /mnt shows all processes accessing a resource and their associated user names. -c only counts the number of lines matching the pattern instead of showing them. -i ignores case. -l lists only file names that contain the pattern. -L lists only file names that do not contain the pattern. -n displays line numbers. -r searches through files under all subdirectories. -v displays lines in a file that do not match the specified pattern. Shows the first 10 lines by default. -n n displays the first n lines of the specified file. Bash history file is.bash_history by default and resides in the user s home directory; default number of last commands kept in the history file is 500.

5 Syntax Guide to UNIX/Linux Commands 629 Common UNIX/Linux commands (continued) join Combines files having a common field -1 fieldnum specifies the common field in file 1 on which to join. -2 fieldnum specifies the common field in file 2 on which to join. -a n produces a line for each unpairable line in file n, where n =1or2. -e string replaces the empty fields for the unpairable line with the string specified by string. -o specifies a list of fields to be output. -t specifies the field separator character. By default, this is a blank, tab, or newline character. Multiple blanks and tabs count as one field separator. kill Ends a process -9 destructively ends a process. -HUP causes the service or daemon to stop (hang up) and restart, which causes the rereading of its configuration files; often used to make changes to a running service. last less let ln Shows the login history of all users on the system Scrolls long files to screen Stores the results of arithmetic operations in a variable Creates symbolic or hard links to files -a displays the host name from which the user connected. -d shows the corresponding IP address for remotes. Allows for scrolling up and down in a file, whereas the more command only allows advancing down a file. By default, creates a hard link, which is another name for a particular inode. -s creates a symbolic link to a file, like a shortcut. lpr Prints a file -P printer prints on a specified printer. #n prints a specified number of copies of the file. -r deletes a print file after it is printed. ls Lists a directory s contents, including its files and subdirectories -a lists hidden files. -l lists files in long format, showing detailed information. -r lists files in reverse alphabetic order. -s shows the size of each file. -S sorts the listing by file size. -t sorts by the time when the file or directory was last modified. -X sorts by extension. B

6 630 Appendix B Syntax Guide to UNIX/Linux Commands Common UNIX/Linux commands (continued) lspci Displays information about all PCI buses on the system (but you must be logged in as root) -v is verbose output. -vv is very verbose output. -t shows a tree-like structure of PCI bus/devices. man mkdir more mount mv passwd paste Displays the online manual for the specified command Makes a new directory Displays a long file one screen at a time Connects the file system to the directory tree in the specified location Moves or renames files Changes your UNIX/Linux password Combines the contents of one or more files to output to the screen or to another file (by default, the pasted results appear in columns separated by tabs) -d prints information for debugging. -f gives a short description of the command (same as using the whatis command). -K finds a certain string by searching through all of the man information. -t formats the output for printing using ghostscript. -v verifies the file is made. Pressing the spacebar advances one screen at a time; pressing Enter advances one line at a time. -r indicates that the mounted partition s device is read-only. -a mounts all possible file systems from /etc/fstab. -t specifies the type of file system to mount. -f never prompts before overwriting existing files and directories. -i displays a warning prompt before overwriting a file with the same name. -u overwrites a destination file with the same name, if the source file is newer than the one in the destination. Users can change only their own password; the root user can change others passwords. -e expires a password causing the user to have to recreate it. -l locks an account. -S displays the password status of an account. -d enables you to specify a different separator (other than a tab) between columns. -s causes files to be pasted one after the other instead of in parallel.

7 Syntax Guide to UNIX/Linux Commands 631 Common UNIX/Linux commands (continued) pr Formats a specified file before printing or viewing -a displays output in columns across the page, one line per column. -d double-spaces the output. -h customizes the header line. -ln sets the number of lines per page. printenv Prints a list of environment variables printf Tells the Awk program what action to take for formatting and printing information ps Shows processes on a system -a shows all running processes. -u shows the user associated with a process. -x shows background system processes. pwd Displays your current path rm Removes a file -i requests confirmation before deleting a file. -r deletes a specified directory and its contents. rmdir Removes a directory -v provides a message to verify the directory is removed. sed set sh Specifies an editing command or a script file containing sed commands Establishes specific operational conditions in the Bash shell Executes a shell script -a \ appends text after a line or a script file containing sed commands. -d deletes specified text. -e specifies multiple commands on one line. -n indicates line numbers on which to work. -p displays lines. -s substitutes specified text. -a exports all shell variables after they are assigned. -n takes commands without executing them, so you can debug errors. -o sets a particular shell mode when used with noclobber as the argument, it prevents files from being overwritten by use of the > operator. -u yields an error message when there is an attempt to use an undefined variable. -v displays command lines as they are executed. Makes using./ or #!/bin/sh unnecessary. -n reads commands without executing them. -v displays lines of code as executed. -x displays commands and arguments as executed. B

8 632 Appendix B Syntax Guide to UNIX/Linux Commands Common UNIX/Linux commands (continued) sort Sorts and merges multiple files + designates the position that follows an offset (+) as a character position, not a field position. -b ignores leading blank characters. -d sorts in dictionary order. -f ignores differences based on uppercase and lowercase. -g sorts by numeric (general) order. -k n sorts on the key field specified by n. -m merges input files that have been previously sorted (does not perform a sort). -n sorts numbers arithmetically. -o redirects output to the specified file. -r sorts in reverse order. -t indicates that a specified character separates the fields. startx Starts the X Window System tail Displays the last few lines of a file By default, displays the last 10 lines of a file. -n n displays the last n lines of the specified file. test Compares values and validates file existence! tests for logical negation. -a tests for a logical AND relationship. -b tests if a file exists and is a block special file (which is a block-oriented device, such as a disk or tape drive). -c tests if a file exists and is a character special file (that is, a character-oriented device, such as a terminal or printer). -d tests if a file exists and is a directory. -e tests if a file exists. -eq tests if equal to. -f tests if a file exists and is a regular file. -ge tests if greater than or equal to. -gt tests if greater than. -le tests if less than or equal to. -lt tests if less than. -n tests for a nonzero string length. -ne tests if not equal to. -o tests for a logical OR relationship. -r tests if a file exists and is readable. -s tests if a file exists and its size is greater than zero. string tests for a nonzero string length. string1 = string2 tests two strings for equality. string1!= string2 tests two strings for inequality. -w tests if a file exists and is writable. -x tests if a file exists and is executable. -z tests for a zero-length string.

9 Syntax Guide to UNIX/Linux Commands 633 Common UNIX/Linux commands (continued) top Displays a list of the most CPU-intensive tasks -c displays the command that initiated each process. -i ignores any idle processes. -q displays output continually, with no delay between outputs. (Use with caution! Try the spacebar for periodic updates.) -s causes the top command to run in secure mode, disabling its interactive commands. -S runs top in cumulative mode, which displays the cumulative CPU time used by a process. touch tput tr trap tty umask umount uniq Changes a file s time and date stamp Formats screen text Translates characters Executes a command when a specified signal is received from the operating system Displays terminal pathname Sets file permissions for multiple files Disconnects the file system partitions from the directory tree Removes consecutive duplicate lines from one file and writes the result to another file -a specifies that only the access date and time are to be updated. -m specifies that only the modification date and time are to be updated. -c specifies that no files are to be created. clear clears the screen. cols prints the number of columns on the current terminal. cup moves the screen cursor to a specified row and column. rmso disables boldface output. smso enables boldface output. -d deletes input characters found in string1 from the output. -s checks for sequences of string1 repeated consecutive times. -l displays a listing of signal numbers and their signal designations. If mounted or being accessed by another user, see the fuser command to force unmounting of the resource. -u outputs only the lines of the source file that are not duplicated. -d outputs one copy of each line that has a duplicate, and does not show unique lines. -i ignores case. -c starts each line by showing the number of each instance. B

10 634 Appendix B Syntax Guide to UNIX/Linux Commands Common UNIX/Linux commands (continued) wc Counts the number of lines, bytes, or words -c counts the number of bytes or characters. -l counts the number of lines. -w counts the number of words. in a file whatis Displays a brief description of a command whereis w who Table B-2 Locates source, binary, and manual entries for the specified string or command Displays users currently on the system Shows who is currently logged in to a system UNIX/Linux utilities by category -b searches for binary entries only. -m searches for manual entries only. -s searches for source entries only. Shows user s originating host, idle time, her current command, CPU utilization, and login time. -b verifies when the system was last booted. -H displays column headings. -q displays a quick list of users. -u displays session idle times. Command Brief Description of Function File-Processing Utilities awk Processes files cat Displays files (and is used with other tools to concatenate files) cmp Compares two files comm Compares sorted files, and shows differences cp Copies files cpio Copies and backs up files to an archive cut Selects characters or fields from input lines dd Copies and converts input records diff Compares two text files, and shows differences dump Backs up files fdformat Formats a floppy disk at a low level file Displays the file type find Finds files within file tree fmt Formats text very simply grep Matches patterns in a file groff Processes embedded text formatting codes gzip Compresses or decompresses files head Displays the first part of a file (first 10 lines by default) ispell Checks one or more files for spelling errors (on some systems, this command might not be documented via the man command)

11 Syntax Guide to UNIX/Linux Commands 635 Table B-2 UNIX/Linux utilities by category (continued) Command Brief Description of Function less Displays files allowing for scrolling forward and backward (pauses when screen is full) ln Creates a link to a file lpr Sends a file to a printer or printer device ls Lists file and directory names and attributes man Displays documentation for commands mkbootdisk Creates a CD (or floppy disk on older distributions) from which to boot a system mkdir Creates a new directory mkfs Builds a UNIX/Linux file system more Displays the contents of a file allowing for scrolling forward (pauses when screen is full) mount Mounts file systems and devices mv Renames and moves files and directories newfs Creates a new file system (used in UNIX systems in particular) od Formats and displays data from a file in octal, hexadecimal, and ASCII formats paste Combines the contents of one or more files to output to the screen or to another file (by default, the pasted results appear in columns separated by tabs) pr Formats text files for printing and displays them pwd Shows the directory you are in rdev Queries or sets the root image device restore Restores files (from a dump) rm Removes files rmdir Removes directories sed Edits streams (noninteractive) sort Sorts or merges files tail Displays the last lines of files (last 10 lines by default) tar Copies and backs up files to a tape archive touch Changes file modification dates and times (and can be used to create a new file) uniq Displays unique lines of a sorted file wc Counts lines, words, and bytes whereis Locates information about a specific file System Status Utilities date Sets and displays date and time df Displays the amount of free space remaining on disk du Summarizes file space usage file Determines file type (for example, shell script, executable, ASCII text, and others) finger Displays detailed information about users who are logged in free Displays amount of free and used memory in the system B

12 636 Appendix B Syntax Guide to UNIX/Linux Commands Table B-2 UNIX/Linux utilities by category (continued) Command Brief Description of Function edquota Displays user disk quotas and enables them to be changed kill Terminates a running process ps Displays process status by process identification number and name sleep Suspends execution for a specified time top Dynamically displays the status of processes in real time, focusing on those processes that are using the most CPU resources uname Shows information about the operating system (use the -r option to determine your kernel version) vmstat Shows information about virtual memory use w Displays detailed information about the users who are logged in who Displays brief information about the users who are logged in Network Utilities ftp Transfers files over a network ifconfig Sets up a network interface netstat Shows network connection information nfsstat Shows statistics for Network File System (NFS; file upload and download) activity ping Polls another network station (using TCP/IP); great for a fast determination about whether your network connection is working rcp Remotely copies a file from a network computer rlogin Logs in to a remote computer route Displays routing table information, and can be used to configure routing rsh Executes commands on a remote computer showmount Lists clients that have mounted volumes on a server telnet Connects to a remote computer on a network traceroute Shows the route along a network between the source device and the destination, such as from a computer to a server wvdial Controls a modem dialer for dial-up connections over a phone line Communications Utilities mail Sends electronic mail messages mesg Denies (mesg n) or accepts (mesg y) messages talk Lets users simultaneously type messages to each other wall Sends a message to all logged in users (who have permissions set to receive messages) write Sends a message to another user Security Utilities chgrp Changes the group associated with a file or the file s group ownership chmod Changes the access permissions of a file or directory chown Changes the owner of a file ipchains Manages a firewall and packet filtering (do not use if you are using iptables instead) iptables Manages a firewall and packet filtering (do not use if you are using ipchains instead)

13 Syntax Guide to UNIX/Linux Commands 637 Table B-2 UNIX/Linux utilities by category (continued) Command Brief Description of Function passwd Changes a password Programming Utilities configure Configures program source code automatically g++ Compiles a C++ program gcc Compiles acprogram make Maintains program source code patch Updates source code Source Code Management Utilities ci Creates changes in Revision Control Systems (RCS) co Retrieves an unencoded revision of an RCS file cvs Manages concurrent access to files in a hierarchy rcs Creates or changes the attributes of an RCS file rlog Prints a summary of the history of an RCS file Miscellaneous Utilities at Executes a command or script at a specified time atq Shows the jobs (commands or scripts) already scheduled to run atrm Enables you to remove a job (command or script) that is scheduled to run batch Runs a command or script, and is really a subset of the at command that takes you to the at> prompt, if you type only batch (in Fedora, Red Hat Enterprise Linux, and SUSE, a command or script is run when the system load is at an acceptable level) cal Displays a calendar for a month or year cd Changes to a directory crontab Schedules a command to run at a preset time expr Evaluates expressions (used for arithmetic and string manipulations) fsck Checks and fixes problems on a file system (repairs damage) printenv Prints environment variables tee Clones output stream to one or more files tr Replaces specified characters (a translation filter) tty Displays terminal pathname xargs Converts standard output of one command into arguments for another B Table B-3 vi editor commands Command Purpose :! Leaves vi temporarily $ Goes to the end of the line. (repeat) Repeats your most recent change / Searches forward for a pattern of characters 0 (zero) Goes to the beginning of the line d$ or D Deletes from the cursor to the end of the line d0 Deletes from the cursor to the start of the line dd Deletes the current line

14 638 Appendix B Syntax Guide to UNIX/Linux Commands Table B-3 vi editor commands (continued) Command Purpose dw Deletes the word starting at the cursor; if the cursor is in the middle of the word, deletes from the cursor to the end of the word H Goes to the upper-left corner of the screen i Switches to insert mode L Goes to the last line on the screen p Pastes text from the clipboard :q Cancels an editing session :q! Cancels an editing session and exits :r Reads text from one file and adds it to another :set Turns on certain options, such as line numbering u Undoes your most recent change :w Saves a file and continues working :wq Writes changes to disk and exits vi :x Saves changes and exits vi x Deletes the character at the cursor location yy Copies (yanks) text to the clipboard ZZ In command mode, saves changes and exits vi Table B-4 Command Alt Commands Alt+< Alt+> Alt+b Alt+d Alt+f Alt+q Alt+t Alt+u Alt+w Alt+x doctor Ctrl Commands Ctrl+@ Ctrl+a Emacs editor commands Purpose Moves the cursor to the beginning of the file Moves the cursor to the end of the file Moves the cursor back one word Deletes the current word Moves the cursor forward one word (moving space to space between words) Reformats current paragraph using word wrap so that lines are full If the cursor is under the first character of the word, transposes the word with the preceding word; if the cursor is not under the first character, transposes the word with the following word Capitalizes all letters from the cursor position in a word to the end of that word Marks the end of a text block to copy (after you have marked the start of text with Ctrl+spacebar) and briefly scrolls up to where you set the beginning mark Enters doctor mode to play a game in which Emacs responds to your statements with questions (Save your work first. Not all versions support this mode) Marks the cursor location; after moving the cursor, you can move or copy text to the mark Moves the cursor to the beginning of the line

15 Syntax Guide to UNIX/Linux Commands 639 Table B-4 Command Ctrl+b Ctrl+d Ctrl+e Ctrl+f Ctrl+g Ctrl+h Ctrl+k Ctrl+n Ctrl+p Ctrl+t Ctrl+v Ctrl+w Ctrl+y Ctrl+h, t Ctrl+x, Ctrl+c Ctrl+x, Ctrl+s Ctrl+x, u Ctrl+Del Ctrl+spacebar Emacs editor commands (continued) Purpose Moves the cursor back one character Deletes the character under the cursor Moves the cursor to the end of the line Moves the cursor forward one character Cancels the current command Runs online help Deletes text to the end of the line Moves the cursor to the next line Moves the cursor to the preceding line Transposes the character before the cursor and the character under the cursor Scrolls down one screen Deletes the marked text; press Ctrl+y to restore deleted text Inserts text from the file buffer, and places it after the cursor Runs a tutorial about Emacs Exits Emacs Saves the file Undoes the last change Deletes text from the current cursor location to the end of the current word Marks the beginning of text, such as to copy the text (use Alt+w to mark the end of the text) B

16 This page intentionally left blank

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p.

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p. Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p. 2 Conventions Used in This Book p. 2 Introduction to UNIX p. 5 An Overview

More information

Contents. xxvii. Preface

Contents. xxvii. Preface Preface xxvii Chapter 1: Welcome to Linux 1 The GNU Linux Connection 2 The History of GNU Linux 2 The Code Is Free 4 Have Fun! 5 The Heritage of Linux: UNIX 5 What Is So Good About Linux? 6 Why Linux Is

More information

Common UNIX Utilities Alphabetical List

Common UNIX Utilities Alphabetical List Common UNIX Utilities Alphabetical List addbib - create or extend a bibliographic database apropos - locate commands by keyword lookup ar - create library archives, and add or extract files at - execute

More information

hash Remember the full pathname of a name argument head Output the first part of file(s) history Command History hostname Print or set system name

hash Remember the full pathname of a name argument head Output the first part of file(s) history Command History hostname Print or set system name LINUX Commands alias Create an alias apropos Search Help manual pages (man -k) awk Find and Replace text, database sort/validate/index break Exit from a loop builtin Run a shell builtin bzip2 Compress

More information

Basic Linux Command Line Interface Guide

Basic Linux Command Line Interface Guide This basic Linux Command-Line Interface (CLI) Guide provides a general explanation of commonly used Bash shell commands for the Barracuda NG Firewall. You can access the command-line interface by connecting

More information

Std: XI CHAPTER-3 LINUX

Std: XI CHAPTER-3 LINUX Commands: General format: Command Option Argument Command: ls - Lists the contents of a file. Option: Begins with minus sign (-) ls a Lists including the hidden files. Argument refers to the name of a

More information

Basic Linux Command Line Interface Guide

Basic Linux Command Line Interface Guide This basic Linux Command-Line Interface (CLI) Guide provides a general explanation of commonly used Bash shell commands for the Barracuda NG Firewall. You can access the command-line interface by connecting

More information

Chapter-3. Introduction to Unix: Fundamental Commands

Chapter-3. Introduction to Unix: Fundamental Commands Chapter-3 Introduction to Unix: Fundamental Commands What You Will Learn The fundamental commands of the Unix operating system. Everything told for Unix here is applicable to the Linux operating system

More information

2) clear :- It clears the terminal screen. Syntax :- clear

2) clear :- It clears the terminal screen. Syntax :- clear 1) cal :- Displays a calendar Syntax:- cal [options] [ month ] [year] cal displays a simple calendar. If arguments are not specified, the current month is displayed. In addition to cal, the ncal command

More information

QUESTION BANK ON UNIX & SHELL PROGRAMMING-502 (CORE PAPER-2)

QUESTION BANK ON UNIX & SHELL PROGRAMMING-502 (CORE PAPER-2) BANK ON & SHELL PROGRAMMING-502 (CORE PAPER-2) TOPIC 1: VI-EDITOR MARKS YEAR 1. Explain set command of vi editor 2 2011oct 2. Explain the modes of vi editor. 7 2013mar/ 2013 oct 3. Explain vi editor 5

More information

Linux Command Line Primer. By: Scott Marshall

Linux Command Line Primer. By: Scott Marshall Linux Command Line Primer By: Scott Marshall Draft: 10/21/2007 Table of Contents Topic Page(s) Preface 1 General Filesystem Background Information 2 General Filesystem Commands 2 Working with Files and

More information

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (( )) (( )) [ x x ] cdc communications, inc. [ x x ] \ / presents... \ / (` ') (` ') (U) (U) Gibe's UNIX COMMAND Bible ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The latest file from the Cow's

More information

Practical Session 0 Introduction to Linux

Practical Session 0 Introduction to Linux School of Computer Science and Software Engineering Clayton Campus, Monash University CSE2303 and CSE2304 Semester I, 2001 Practical Session 0 Introduction to Linux Novell accounts. Every Monash student

More information

5/8/2012. Exploring Utilities Chapter 5

5/8/2012. Exploring Utilities Chapter 5 Exploring Utilities Chapter 5 Examining the contents of files. Working with the cut and paste feature. Formatting output with the column utility. Searching for lines containing a target string with grep.

More information

On successful completion of the course, the students will be able to attain CO: Experiment linked. 2 to 4. 5 to 8. 9 to 12.

On successful completion of the course, the students will be able to attain CO: Experiment linked. 2 to 4. 5 to 8. 9 to 12. CIE- 25 Marks Government of Karnataka Department of Technical Education Bengaluru Course Title: Linux Lab Scheme (L:T:P) : 0:2:4 Total Contact Hours: 78 Type of Course: Tutorial, Practical s & Student

More information

UNIX Quick Reference

UNIX Quick Reference UNIX Quick Reference This card represents a brief summary of some of the more frequently used UNIX commands that all users should be at least somewhat familiar with. Some commands listed have much more

More information

Table of contents. Our goal. Notes. Notes. Notes. Summer June 29, Our goal is to see how we can use Unix as a tool for developing programs

Table of contents. Our goal. Notes. Notes. Notes. Summer June 29, Our goal is to see how we can use Unix as a tool for developing programs Summer 2010 Department of Computer Science and Engineering York University Toronto June 29, 2010 1 / 36 Table of contents 1 2 3 4 2 / 36 Our goal Our goal is to see how we can use Unix as a tool for developing

More information

Useful Unix Commands Cheat Sheet

Useful Unix Commands Cheat Sheet Useful Unix Commands Cheat Sheet The Chinese University of Hong Kong SIGSC Training (Fall 2016) FILE AND DIRECTORY pwd Return path to current directory. ls List directories and files here. ls dir List

More information

Set 1 MCQ Which command is used to sort the lines of data in a file in reverse order A) sort B) sh C) st D) sort -r

Set 1 MCQ Which command is used to sort the lines of data in a file in reverse order A) sort B) sh C) st D) sort -r 1. Which symbol will be used with grep command to match the pattern pat at the beginning of a line? A) ^pat B) $pat C) pat$ D) pat^ 2. Which command is used to sort the lines of data in a file in reverse

More information

Outline. Structure of a UNIX command

Outline. Structure of a UNIX command Outline Structure of Unix Commands Command help (man) Log on (terminal vs. graphical) System information (utility) File and directory structure (path) Permission (owner, group, rwx) File and directory

More information

List of Linux Commands in an IPm

List of Linux Commands in an IPm List of Linux Commands in an IPm Directory structure for Executables bin: ash cpio false ln mount rm tar zcat busybox date getopt login mv rmdir touch cat dd grep ls perl sed true chgrp df gunzip mkdir

More information

Introduction to Linux Workshop 1

Introduction to Linux Workshop 1 Introduction to Linux Workshop 1 The George Washington University SEAS Computing Facility Created by Jason Hurlburt, Hadi Mohammadi, Marco Suarez hurlburj@gwu.edu Logging In The lab computers will authenticate

More information

Introduction to Linux (Part I) BUPT/QMUL 2018/03/14

Introduction to Linux (Part I) BUPT/QMUL 2018/03/14 Introduction to Linux (Part I) BUPT/QMUL 2018/03/14 Contents 1. Background on Linux 2. Starting / Finishing 3. Typing Linux Commands 4. Commands to Use Right Away 5. Linux help continued 2 Contents 6.

More information

Essential Unix (and Linux) for the Oracle DBA. Revision no.: PPT/2K403/02

Essential Unix (and Linux) for the Oracle DBA. Revision no.: PPT/2K403/02 Essential Unix (and Linux) for the Oracle DBA Revision no.: PPT/2K403/02 Architecture of UNIX Systems 2 UNIX System Structure 3 Operating system interacts directly with Hardware Provides common services

More information

Some useful UNIX Commands written down by Razor for newbies to get a start in UNIX

Some useful UNIX Commands written down by Razor for newbies to get a start in UNIX Some useful UNIX Commands written down by Razor for newbies to get a start in UNIX 15th Jan. 2000 / 3:55 am Part 1: Working with files and rights ------------------------------------- cp

More information

CSE 303 Lecture 2. Introduction to bash shell. read Linux Pocket Guide pp , 58-59, 60, 65-70, 71-72, 77-80

CSE 303 Lecture 2. Introduction to bash shell. read Linux Pocket Guide pp , 58-59, 60, 65-70, 71-72, 77-80 CSE 303 Lecture 2 Introduction to bash shell read Linux Pocket Guide pp. 37-46, 58-59, 60, 65-70, 71-72, 77-80 slides created by Marty Stepp http://www.cs.washington.edu/303/ 1 Unix file system structure

More information

Getting Started. Running Utilities. Shells. Special Characters. Special Characters. Chapter 2 Unix Utilities for non-programmers

Getting Started. Running Utilities. Shells. Special Characters. Special Characters. Chapter 2 Unix Utilities for non-programmers Chapter 2 Unix Utilities for non-programmers Graham Glass and King Ables, UNIX for Programmers and Users, Third Edition, Pearson Prentice Hall, 2003. Original Notes by Raj Sunderraman Converted to presentation

More information

for more :-

for more :- JNTU ONLINE EXAMINATIONS [Mid 1 - UNIX] 1. C programmers in the unix environment has complete access to the entire system call library as well as the a. static library functions b. dynamic library functions

More information

UNIX Essentials Featuring Solaris 10 Op System

UNIX Essentials Featuring Solaris 10 Op System A Active Window... 7:11 Application Development Tools... 7:7 Application Manager... 7:4 Architectures - Supported - UNIX... 1:13 Arithmetic Expansion... 9:10 B Background Processing... 3:14 Background

More information

BIOINFORMATICS POST-DIPLOMA PROGRAM SUBJECT OUTLINE Subject Title: OPERATING SYSTEMS AND PROJECT MANAGEMENT Subject Code: BIF713 Subject Description:

BIOINFORMATICS POST-DIPLOMA PROGRAM SUBJECT OUTLINE Subject Title: OPERATING SYSTEMS AND PROJECT MANAGEMENT Subject Code: BIF713 Subject Description: BIOINFORMATICS POST-DIPLOMA PROGRAM SUBJECT OUTLINE Subject Title: OPERATING SYSTEMS AND PROJECT MANAGEMENT Subject Code: BIF713 Subject Description: This course provides Bioinformatics students with the

More information

CS4350 Unix Programming. Outline

CS4350 Unix Programming. Outline Outline Unix Management Files and file systems Structure of Unix Commands Command help (man) Log on (terminal vs. graphical) System information (utility) File and directory structure (path) Permission

More information

LOG ON TO LINUX AND LOG OFF

LOG ON TO LINUX AND LOG OFF EXPNO:1A LOG ON TO LINUX AND LOG OFF AIM: To know how to logon to Linux and logoff. PROCEDURE: Logon: To logon to the Linux system, we have to enter the correct username and password details, when asked,

More information

Bash command line for Linux. adduser Add a user to the system. addgroup Add a group to the system. Create an alias

Bash command line for Linux. adduser Add a user to the system. addgroup Add a group to the system. Create an alias Bash command line for Linux. adduser Add a user to the system addgroup Add a group to the system alias Create an alias apropos Search Help manual pages (man -k) apt-get Search for and install software

More information

Introduction to Unix: Fundamental Commands

Introduction to Unix: Fundamental Commands Introduction to Unix: Fundamental Commands Ricky Patterson UVA Library Based on slides from Turgut Yilmaz Istanbul Teknik University 1 What We Will Learn The fundamental commands of the Unix operating

More information

Unix File System. Learning command-line navigation of the file system is essential for efficient system usage

Unix File System. Learning command-line navigation of the file system is essential for efficient system usage ULI101 Week 02 Week Overview Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages Text editing Common file utilities: cat,more,less,touch,file,find

More information

Unix/Linux Operating System. Introduction to Computational Statistics STAT 598G, Fall 2011

Unix/Linux Operating System. Introduction to Computational Statistics STAT 598G, Fall 2011 Unix/Linux Operating System Introduction to Computational Statistics STAT 598G, Fall 2011 Sergey Kirshner Department of Statistics, Purdue University September 7, 2011 Sergey Kirshner (Purdue University)

More information

RH033 Red Hat Linux Essentials

RH033 Red Hat Linux Essentials RH033 Red Hat Linux Essentials Version 3.5 QUESTION NO: 1 You work as a Network Administrator for McNeil Inc. The company has a Linux-based network. A printer is configured on the network. You want to

More information

5/20/2007. Touring Essential Programs

5/20/2007. Touring Essential Programs Touring Essential Programs Employing fundamental utilities. Managing input and output. Using special characters in the command-line. Managing user environment. Surveying elements of a functioning system.

More information

CS Fundamentals of Programming II Fall Very Basic UNIX

CS Fundamentals of Programming II Fall Very Basic UNIX CS 215 - Fundamentals of Programming II Fall 2012 - Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the CS (Project) Lab (KC-265)

More information

Introduction to remote command line Linux. Research Computing Team University of Birmingham

Introduction to remote command line Linux. Research Computing Team University of Birmingham Introduction to remote command line Linux Research Computing Team University of Birmingham Linux/UNIX/BSD/OSX/what? v All different v UNIX is the oldest, mostly now commercial only in large environments

More information

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines Introduction to UNIX Logging in Basic system architecture Getting help Intro to shell (tcsh) Basic UNIX File Maintenance Intro to emacs I/O Redirection Shell scripts Logging in most systems have graphical

More information

GNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018

GNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018 GNU/Linux 101 Casey McLaughlin Research Computing Center Spring Workshop Series 2018 rccworkshop IC;3df4mu bash-2.1~# man workshop Linux101 RCC Workshop L101 OBJECTIVES - Operating system concepts - Linux

More information

Unix Tools / Command Line

Unix Tools / Command Line Unix Tools / Command Line An Intro 1 Basic Commands / Utilities I expect you already know most of these: ls list directories common options: -l, -F, -a mkdir, rmdir make or remove a directory mv move/rename

More information

TestOut Linux Pro - English 4.0.x OBJECTIVE MAPPING: CompTIA Linux+ LX0-103

TestOut Linux Pro - English 4.0.x OBJECTIVE MAPPING: CompTIA Linux+ LX0-103 TestOut Linux Pro - English 4.0.x OBJECTIVE MAPPING: CompTIA Linux+ LX0-103 CompTIA Linux+ Powered by LPI LX0-103 Objectives The Linux+ Powered by LPI Exam: LX0-103 exam covers the following topics. #

More information

Embedded Linux Systems. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

Embedded Linux Systems. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island Embedded Linux Systems Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island Generic Embedded Systems Structure User Sensors ADC microcontroller

More information

M.C.A. (Sem.-lll) (CBCS) Examination November CCA-3003 Operating System and LinuxlUnix programming

M.C.A. (Sem.-lll) (CBCS) Examination November CCA-3003 Operating System and LinuxlUnix programming IIMII 003-007303 M.C.A. (Sem.-lll) (CBCS) Examination November-20 13 CCA-3003 Operating System and LinuxlUnix programming Faculty Code: 003 Subject Code: 007303 Time: 2'/' Hoursl ITotal Marks: 70 I. Attempt

More information

Introduction to Linux Environment. Yun-Wen Chen

Introduction to Linux Environment. Yun-Wen Chen Introduction to Linux Environment Yun-Wen Chen 1 The Text (Command) Mode in Linux Environment 2 The Main Operating Systems We May Meet 1. Windows 2. Mac 3. Linux (Unix) 3 Windows Command Mode and DOS Type

More information

The Unix Shell & Shell Scripts

The Unix Shell & Shell Scripts The Unix Shell & Shell Scripts You should do steps 1 to 7 before going to the lab. Use the Linux system you installed in the previous lab. In the lab do step 8, the TA may give you additional exercises

More information

UNIX COMMANDS AND SHELLS. UNIX Programming 2015 Fall by Euiseong Seo

UNIX COMMANDS AND SHELLS. UNIX Programming 2015 Fall by Euiseong Seo UNIX COMMANDS AND SHELLS UNIX Programming 2015 Fall by Euiseong Seo What is a Shell? A system program that allows a user to execute Shell functions (internal commands) Other programs (external commands)

More information

Unix Introduction to UNIX

Unix Introduction to UNIX Unix Introduction to UNIX Get Started Introduction The UNIX operating system Set of programs that act as a link between the computer and the user. Developed in 1969 by a group of AT&T employees Various

More information

Linux Refresher (1) 310/ Fourth Workshop on Distributed Laboratory Instrumentation Systems (30 October - 24 November 2006)

Linux Refresher (1) 310/ Fourth Workshop on Distributed Laboratory Instrumentation Systems (30 October - 24 November 2006) 310/1779-4 Fourth Workshop on Distributed Laboratory Instrumentation Systems (30 October - 24 November 2006) Linux Refresher (1) Razaq Babalola IJADUOLA These lecture notes are intended only for distribution

More information

Computer Architecture Lab 1 (Starting with Linux)

Computer Architecture Lab 1 (Starting with Linux) Computer Architecture Lab 1 (Starting with Linux) Linux is a computer operating system. An operating system consists of the software that manages your computer and lets you run applications on it. The

More information

Introduction To Linux. Rob Thomas - ACRC

Introduction To Linux. Rob Thomas - ACRC Introduction To Linux Rob Thomas - ACRC What Is Linux A free Operating System based on UNIX (TM) An operating system originating at Bell Labs. circa 1969 in the USA More of this later... Why Linux? Free

More information

Utilities. September 8, 2015

Utilities. September 8, 2015 Utilities September 8, 2015 Useful ideas Listing files and display text and binary files Copy, move, and remove files Search, sort, print, compare files Using pipes Compression and archiving Your fellow

More information

Operating Systems. Copyleft 2005, Binnur Kurt

Operating Systems. Copyleft 2005, Binnur Kurt 3 Operating Systems Copyleft 2005, Binnur Kurt Content The concept of an operating system. The internal architecture of an operating system. The architecture of the Linux operating system in more detail.

More information

LPIC-1 System Administrator

LPIC-1 System Administrator LPIC-1 System Administrator The world s largest and most recognized Linux Certification LPIC-1 is the first certification in LPI s multi-level Linux professional certification program. The LPIC-1 will

More information

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing Content 3 Operating Systems The concept of an operating system. The internal architecture of an operating system. The architecture of the Linux operating system in more detail. How to log into (and out

More information

Basic Linux (Bash) Commands

Basic Linux (Bash) Commands Basic Linux (Bash) Commands Hint: Run commands in the emacs shell (emacs -nw, then M-x shell) instead of the terminal. It eases searching for and revising commands and navigating and copying-and-pasting

More information

LINUX FUNDAMENTALS (5 Day)

LINUX FUNDAMENTALS (5 Day) www.peaklearningllc.com LINUX FUNDAMENTALS (5 Day) Designed to provide the essential skills needed to be proficient at the Unix or Linux command line. This challenging course focuses on the fundamental

More information

Contents. xxix. Preface

Contents. xxix. Preface Contents Preface xxix Chapter 1: Welcome to Mac OS X 1 The Heritage of Mac OS X: UNIX 2 The Open Source Connection 3 The Mach Kernel 3 The GNU Project 4 The BSD UNIX System 5 Darwin 5 Overview of Mac OS

More information

Shell Programming Overview

Shell Programming Overview Overview Shell programming is a way of taking several command line instructions that you would use in a Unix command prompt and incorporating them into one program. There are many versions of Unix. Some

More information

Mills HPC Tutorial Series. Linux Basics I

Mills HPC Tutorial Series. Linux Basics I Mills HPC Tutorial Series Linux Basics I Objectives Command Line Window Anatomy Command Structure Command Examples Help Files and Directories Permissions Wildcards and Home (~) Redirection and Pipe Create

More information

bash, part 3 Chris GauthierDickey

bash, part 3 Chris GauthierDickey bash, part 3 Chris GauthierDickey More redirection As you know, by default we have 3 standard streams: input, output, error How do we redirect more than one stream? This requires an introduction to file

More information

IMPORTANT: Logging Off LOGGING IN

IMPORTANT: Logging Off LOGGING IN These are a few basic Unix commands compiled from Unix web sites, and printed materials. The main purpose is to help a beginner to go around with fewer difficulties. Therefore, I will be adding to this

More information

Week Overview. Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages

Week Overview. Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages ULI101 Week 02 Week Overview Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages Text editing Common file utilities: cat,more,less,touch,file,find

More information

Advanced training. Linux components Command shell. LiLux a.s.b.l.

Advanced training. Linux components Command shell. LiLux a.s.b.l. Advanced training Linux components Command shell LiLux a.s.b.l. alexw@linux.lu Kernel Interface between devices and hardware Monolithic kernel Micro kernel Supports dynamics loading of modules Support

More information

A Brief Introduction to the Linux Shell for Data Science

A Brief Introduction to the Linux Shell for Data Science A Brief Introduction to the Linux Shell for Data Science Aris Anagnostopoulos 1 Introduction Here we will see a brief introduction of the Linux command line or shell as it is called. Linux is a Unix-like

More information

Linux Shell Script. J. K. Mandal

Linux Shell Script. J. K. Mandal Linux Shell Script J. K. Mandal Professor, Department of Computer Science & Engineering, Faculty of Engineering, Technology & Management University of Kalyani Kalyani, Nadia, West Bengal E-mail: jkmandal@klyuniv.ac.in,

More information

Files and Directories

Files and Directories CSCI 2132: Software Development Files and Directories Norbert Zeh Faculty of Computer Science Dalhousie University Winter 2019 Files and Directories Much of the operation of Unix and programs running on

More information

UNIX ASSIGNMENT 1 TYBCA (Sem:V)

UNIX ASSIGNMENT 1 TYBCA (Sem:V) UNIX ASSIGNMENT 1 TYBCA (Sem:V) Given Date: 06-08-2015 1. Explain the difference between the following thru example ln & paste tee & (pipeline) 2. What is the difference between the following commands

More information

Introduction to UNIX command-line II

Introduction to UNIX command-line II Introduction to UNIX command-line II Boyce Thompson Institute 2017 Prashant Hosmani Class Content Terminal file system navigation Wildcards, shortcuts and special characters File permissions Compression

More information

Unix as a Platform Exercises + Solutions. Course Code: OS 01 UNXPLAT

Unix as a Platform Exercises + Solutions. Course Code: OS 01 UNXPLAT Unix as a Platform Exercises + Solutions Course Code: OS 01 UNXPLAT Working with Unix Most if not all of these will require some investigation in the man pages. That's the idea, to get them used to looking

More information

Operating Systems Lab 1 (Users, Groups, and Security)

Operating Systems Lab 1 (Users, Groups, and Security) Operating Systems Lab 1 (Users, Groups, and Security) Overview This chapter covers the most common commands related to users, groups, and security. It will also discuss topics like account creation/deletion,

More information

The student will have the essential skills needed to be proficient at the Unix or Linux command line.

The student will have the essential skills needed to be proficient at the Unix or Linux command line. Table of Contents Introduction Audience At Course Completion Prerequisites Certified Professional Exams Student Materials Course Outline Introduction This challenging course focuses on the fundamental

More information

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University Unix/Linux Basics 1 Some basics to remember Everything is case sensitive Eg., you can have two different files of the same name but different case in the same folder Console-driven (same as terminal )

More information

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering ENG224 Information Technology Part I: Computers and the Internet Laboratory 2 Linux Shell Commands and vi Editor

More information

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the EECS labs that dual boot

More information

Using the Zoo Workstations

Using the Zoo Workstations Using the Zoo Workstations Version 1.86: January 16, 2014 If you ve used Linux before, you can probably skip many of these instructions, but skim just in case. Please direct corrections and suggestions

More information

client X11 Linux workstation

client X11 Linux workstation LPIC1 LPIC Linux: System Administrator LPIC 1 LPI command line LPIC-1 Linux LPIC-1 client X11 Linux workstation Unix GNU Linux Fundamentals Unix and its Design Principles FSF and GNU GPL - General Public

More information

Linux Tutorial. Ken-ichi Nomura. 3 rd Magics Materials Software Workshop. Gaithersburg Marriott Washingtonian Center November 11-13, 2018

Linux Tutorial. Ken-ichi Nomura. 3 rd Magics Materials Software Workshop. Gaithersburg Marriott Washingtonian Center November 11-13, 2018 Linux Tutorial Ken-ichi Nomura 3 rd Magics Materials Software Workshop Gaithersburg Marriott Washingtonian Center November 11-13, 2018 Wireless Network Configuration Network Name: Marriott_CONFERENCE (only

More information

Fall Lecture 5. Operating Systems: Configuration & Use CIS345. The Linux Utilities. Mostafa Z. Ali.

Fall Lecture 5. Operating Systems: Configuration & Use CIS345. The Linux Utilities. Mostafa Z. Ali. Fall 2009 Lecture 5 Operating Systems: Configuration & Use CIS345 The Linux Utilities Mostafa Z. Ali mzali@just.edu.jo 1 1 The Linux Utilities Linux did not have a GUI. It ran on character based terminals

More information

Lecture # 2 Introduction to UNIX (Part 2)

Lecture # 2 Introduction to UNIX (Part 2) CS390 UNIX Programming Spring 2009 Page 1 Lecture # 2 Introduction to UNIX (Part 2) UNIX is case sensitive (lowercase, lowercase, lowercase) Logging in (Terminal Method) Two basic techniques: 1. Network

More information

Linux & Shell Programming 2014

Linux & Shell Programming 2014 Practical No : 1 Enrollment No: Group : A Practical Problem Write a date command to display date in following format: (Consider current date as 4 th January 2014) 1. dd/mm/yy hh:mm:ss 2. Today's date is:

More information

Chapter 1 - Introduction. September 8, 2016

Chapter 1 - Introduction. September 8, 2016 Chapter 1 - Introduction September 8, 2016 Introduction Overview of Linux/Unix Shells Commands: built-in, aliases, program invocations, alternation and iteration Finding more information: man, info Help

More information

Linux Reference Card - Command Summary

Linux Reference Card - Command Summary Linux Reference Card - Command Summary adduser adduser dsoneil This command will automatically add a new user to the system The Bash script can be found in /usr/sbin if it needs to be changes alias alias

More information

Introduction to the shell Part II

Introduction to the shell Part II Introduction to the shell Part II Graham Markall http://www.doc.ic.ac.uk/~grm08 grm08@doc.ic.ac.uk Civil Engineering Tech Talks 16 th November, 1pm Last week Covered applications and Windows compatibility

More information

Perl and R Scripting for Biologists

Perl and R Scripting for Biologists Perl and R Scripting for Biologists Lukas Mueller PLBR 4092 Course overview Linux basics (today) Linux advanced (Aure, next week) Why Linux? Free open source operating system based on UNIX specifications

More information

Introduction: What is Unix?

Introduction: What is Unix? Introduction Introduction: What is Unix? An operating system Developed at AT&T Bell Labs in the 1960 s Command Line Interpreter GUIs (Window systems) are now available Introduction: Unix vs. Linux Unix

More information

Introduction to UNIX/Linux

Introduction to UNIX/Linux Introduction to UNIX/Linux Biochemistry Boot Camp 2018 Session #3 Nick Fitzkee nfitzkee@chemistry.msstate.edu Operating system (OS) Some terms Command-line interface (CLI) Graphical user interface (GUI)

More information

Unix tutorial. Thanks to Michael Wood-Vasey (UPitt) and Beth Willman (Haverford) for providing Unix tutorials on which this is based.

Unix tutorial. Thanks to Michael Wood-Vasey (UPitt) and Beth Willman (Haverford) for providing Unix tutorials on which this is based. Unix tutorial Thanks to Michael Wood-Vasey (UPitt) and Beth Willman (Haverford) for providing Unix tutorials on which this is based. Terminal windows You will use terminal windows to enter and execute

More information

Systems Programming/ C and UNIX

Systems Programming/ C and UNIX Systems Programming/ C and UNIX Alice E. Fischer September 6, 2017 Alice E. Fischer Systems Programming Lecture 2... 1/28 September 6, 2017 1 / 28 Outline 1 Booting into Linux 2 The Command Shell 3 Defining

More information

Unix as a Platform Exercises. Course Code: OS-01-UNXPLAT

Unix as a Platform Exercises. Course Code: OS-01-UNXPLAT Unix as a Platform Exercises Course Code: OS-01-UNXPLAT Working with Unix 1. Use the on-line manual page to determine the option for cat, which causes nonprintable characters to be displayed. Run the command

More information

Unix Scripts and Job Scheduling. Overview. Running a Shell Script

Unix Scripts and Job Scheduling. Overview. Running a Shell Script Unix Scripts and Job Scheduling Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh spring@imap.pitt.edu http://www.sis.pitt.edu/~spring Overview Shell Scripts

More information

Course 144 Supplementary Materials. UNIX Fundamentals

Course 144 Supplementary Materials. UNIX Fundamentals Course 144 Supplementary Materials UNIX Fundamentals 1 Background to UNIX Command Fundamentals This appendix provides a overview of critical commands and concepts Prerequisite knowledge attendees should

More information

File Commands. Objectives

File Commands. Objectives File Commands Chapter 2 SYS-ED/Computer Education Techniques, Inc. 2: 1 Objectives You will learn: Purpose and function of file commands. Interrelated usage of commands. SYS-ED/Computer Education Techniques,

More information

Computer Systems and Architecture

Computer Systems and Architecture Computer Systems and Architecture Introduction to UNIX Stephen Pauwels University of Antwerp October 2, 2015 Outline What is Unix? Getting started Streams Exercises UNIX Operating system Servers, desktops,

More information

Kali Linux Commands Cheat Sheet

Kali Linux Commands Cheat Sheet Kali Linux Commands Cheat Sheet Todos os comandos básicos de A a Z em Kali Linux. A apropos : Search Help manual pages (man -k) apt-get : Search for and install software packages (Debian/Ubuntu) aptitude

More information

Lab 2: Linux/Unix shell

Lab 2: Linux/Unix shell Lab 2: Linux/Unix shell Comp Sci 1585 Data Structures Lab: Tools for Computer Scientists Outline 1 2 3 4 5 6 7 What is a shell? What is a shell? login is a program that logs users in to a computer. When

More information

UNIX System Administration

UNIX System Administration $!... 14:13 $$... 14:13.netrc...12:27-28 /etc/fstab... 6:25 /etc/hosts.equiv... 8:23 /etc/inittab Entries... 4:8 /etc/netmasks... 8:22 /etc/shells... 12:25 /home... 6:69 /tmp...6:61-67 /usr... 6:70 /var...

More information

Linux Fundamentals (L-120)

Linux Fundamentals (L-120) Linux Fundamentals (L-120) Modality: Virtual Classroom Duration: 5 Days SUBSCRIPTION: Master, Master Plus About this course: This is a challenging course that focuses on the fundamental tools and concepts

More information