Documentation

Total Page:16

File Type:pdf, Size:1020Kb

Documentation ch01.fm Page 1 Friday, October 22, 1999 12:14 PM CHAPTER 1 Documentation Introduction There are a wide variety of sources for documentation on Linux. The quality of the information provided ranges from nearly poetic in its eloquence and usefulness all the way down to misleading or even blatantly wrong. Caveat emptor. Most commercial packages provide a variety of FAQ’s and HOWTO’s in addition to the standard online documentation (man, info, ...). These are generally centered around some non- trivial task (e.g., running X-Windows, communicating with the lesser operating systems). Usenet has dozens, if not hundreds, of newsgroups devoted to the various facets of Linux. Be advised that they are usually segre- gated according to level of expertise and the locals can be grumpy about inappropriate newbie questions—you should (as always) read the FAQ (frequently asked questions) before posting. Similarly diverse information can be found on the Web. Proba- bly the best site is http://metalab.unc.edu/LDP, the official Linux Documentation Project Web site. Because Linux is a variation of the Unix operating system, the published Unix references will, for the most part, apply to Linux as well. Also, as Linux gains popularity, more Linux-specific periodi- cals are available at bookstores. 1 ch01.fm Page 2 Friday, October 22, 1999 12:14 PM 2 Chapter 1 • Documentation Of course, your first source of information should be your own machine. Most questions can be answered by a careful reading of the docu- mentation. The commands covered in this section tell you how to use the resources on your machine to answer questions. They include: apropos Search the whatis database. info Provide hypertext documentation. locate Search for a file in the locate database. man Access on-line manual pages. makewhatis Create the whatis database. manpath Specify the search path for the man command. updatedb Update the locate database. whatis Search the whatis database for information. whereis Locate source files and documentation. Related Files /etc/man.config Default man.conf file. /usr/sbin/makewhatis Create the whatis database. Commands apropos keyword Search the whatis database for keyword. Provides terse but thorough docu- mentation. Good place to start looking if you’re clueless. You must run makewhatis before using. Example: To retrieve information on the various files and executables dealing with passwords: apropos passwd info options keyword Info is a hypertext reader which searches and displays online documenta- tion about the specified keyword. ch01.fm Page 3 Friday, October 22, 1999 12:14 PM Commands 3 Example: To look up information on the cd command: info cd Example: To look up information on the grep command and store it in output file grep.doc: info -o grep.doc grep --directory Look for info files in the specified directories. DIRECTORY-PATH, -d DIRECTORY-PATH --file FILENAME, Search the specified filename for information about -f FILENAME keyword. --node NODENAME, Force display of the specified info node. -n NODENAME --output FILENAME, Direct all output to FILENAME rather than standard -o FILENAME output. --subnodes Recursively output the nodes appearing in the menu of each node being output. --help, -h Output a description of the available options for info. --version Display the version information. locate [-d path] [--database=path][--version][--help] pattern Search the locate database for pattern. This command serves some of the same purposes as find, but it is quicker and not as thorough. Note that in order for this command to work, the updatedb command must first be run. If you get in the habit of using locate, you probably ought to put a line in your crontab to run updatedb every night; other- wise, your information will get out of date quickly. Example: To get locate to search its database for HOWTO files pertaining to XFree86: locate HOWTO | grep XFree86 ch01.fm Page 4 Friday, October 22, 1999 12:14 PM 4 Chapter 1 • Documentation If the file you’re after was created since the last time updatedb was run, locate won’t find it. Use the find command instead. -d path, -- Search the specified path instead of the default path. database=path --version Display the version number. --help Display help info. makewhatis options Create the whatis database, an on-line database of commands used by the whatis command. Generally, makewhatis needs to be run only once. Example: To update the whatis database after you’ve installed a new batch of man pages: makewhatis -w -u Update database with new man pages. -v Operate verbosely. -w Use manpath obtained from man --path. man [-acdfhkKtwW] [-m system] [-p string] [-C config_file] [-M path] [-P pager] [-S section_list] [section] name ... Format and display on-line manual pages. Manual pages are prepared doc- uments associated with a particular command. They describe the command syntax, the usage, the associated files, and occasionally provide usage exam- ples. The following environment variables apply: MANPATH Specify the path to be searched for man pages. MANROFFSEQ Determine the set of preprocessors run before nroff or troff. MANSECT Specify which sections of the manual to search (if set at all). MANWIDTH Specify the width at which man pages are dis- played. ch01.fm Page 5 Friday, October 22, 1999 12:14 PM Commands 5 MANPAGER Specify the paging program used to output man pages. LANG Specify the subdirectory where man first looks for entries. Example: To search for the manual page for the ls command: man ls Example: To search for all manual pages (not just the first one) on the mke2fs command and display using the less pager: man -a -P less mke2fs -C config_file Specify the configuration file used by man. Default is /etc/ man.conf. -M path Specify the list of directories to search for man pages. -P pager Specify which program is used to present the output to the user. Default is /usr/bin/less-is. -S section_list Specify a list of man sections to search (list delimited by colons). -a Force man to display all man pages matching the name argu- ment, not just the first. -c Force man to reformat the source page, regardless of whether an up-to-date cat page exists. -d Print debugging information instead of actual man pages. -D Display and print debugging information. -f Force man to behave as if it were the whatis program. -h Print a succinct help message. -k Force man to behave as if it were the apropos program. -K Force man to search for the specified string in all man pages. Painfully slow. -m system Specify an alternate set of man pages to search based on the system name given. ch01.fm Page 6 Friday, October 22, 1999 12:14 PM 6 Chapter 1 • Documentation -p string String is a sequence of preprocessors to be run before nroff or troff. -t Use /usr/bin/groff -Tps-mandoc to format the man page. -w or --path Instead of the man page, print the path of the man page that would be displayed. -W Like -w (above) but only prints file names one per line. updatedb [options] Update the file database used by locate. Example: To update the database used by locate: updatedb If you use locate, you should run this command nightly via cron. --localpaths='path1 path2...' Non-network directories to put in the data- base. --netpaths='path1 path2...' Network (NFS, AFS, RFS, etc.) directories to put in the database. Default is none. --prunepaths='path1 path2...' Directories to not put in the database, which would otherwise be. Default is /tmp / usr/tmp /var/tmp /afs. --output=dbfile The database file to build. Default is sys- tem-dependent, but typically /usr/local/var/ locatedb. --netuser=user The user to search network directories as, using su(1). Default is daemon. --old-format Create the database in the old format instead of the new one. --version Print the version number of updatedb and exit. --help Print a summary of the options to updatedb and exit. ch01.fm Page 7 Friday, October 22, 1999 12:14 PM Commands 7 whatis keyword ... Search the whatis database for keyword. The whatis database contains short descriptions of system commands. Note that in order to be usable, you must first run the /usr/sbin/makewhatis command. Example: To get a brief description of the cron command: whatis cron whereis [ -bmsu ] [ -BMS directory... -f ] filename ... Locate source files and applicable manual sections for the specified files. Example: To search for source files and manual selections for the /etc/hosts file: whereis /etc/hosts -b Search for binary files only. -m Search the manual pages only. -s Search for source files only. -u Search for unusual entries. An unusual entry is a file in the current directory which has neither a binary, a man page, nor a source file associated with it. -B Specify where to look for binaries. -M Specify where to look for man pages. -S Specify where to look for source files. -f Used as a delimiter on the command line. Indicates that the directory list has ended and the file list is about to begin. ch01.fm Page 8 Friday, October 22, 1999 12:14 PM 8 Chapter 1 • Documentation.
Recommended publications
  • Unix Command Line; Editors
    Unix command line; editors Karl Broman Biostatistics & Medical Informatics, UW–Madison kbroman.org github.com/kbroman @kwbroman Course web: kbroman.org/AdvData My goal in this lecture is to convince you that (a) command-line-based tools are the things to focus on, (b) you need to choose a powerful, universal text editor (you’ll use it a lot), (c) you want to be comfortable and skilled with each. For your work to be reproducible, it needs to be code-based; don’t touch that mouse! Windows vs. Mac OSX vs. Linux Remote vs. Not 2 The Windows operating system is not very programmer-friendly. Mac OSX isn’t either, but under the hood, it’s just unix. Don’t touch the mouse! Open a terminal window and start typing. I do most of my work directly on my desktop or laptop. You might prefer to work remotely on a server, instead. But I can’t stand having any lag in looking at graphics. If you use Windows... Consider Git Bash (or Cygwin) or turn on the Windows subsystem for linux 3 Cygwin is an effort to get Unix command-line tools in Windows. Git Bash combines git (for version control) and bash (the unix shell); it’s simpler to deal with than Cygwin. Linux is now accessible in Windows 10, but you have to enable it. If you use a Mac... Consider Homebrew and iTerm2 Also the XCode command line tools 4 Homebrew is a packaging system; iTerm2 is a Terminal replacement. The XCode command line tools are a must for most unixy things on a Mac.
    [Show full text]
  • Unix/Linux Command Reference
    Unix/Linux Command Reference .com File Commands System Info ls – directory listing date – show the current date and time ls -al – formatted listing with hidden files cal – show this month's calendar cd dir - change directory to dir uptime – show current uptime cd – change to home w – display who is online pwd – show current directory whoami – who you are logged in as mkdir dir – create a directory dir finger user – display information about user rm file – delete file uname -a – show kernel information rm -r dir – delete directory dir cat /proc/cpuinfo – cpu information rm -f file – force remove file cat /proc/meminfo – memory information rm -rf dir – force remove directory dir * man command – show the manual for command cp file1 file2 – copy file1 to file2 df – show disk usage cp -r dir1 dir2 – copy dir1 to dir2; create dir2 if it du – show directory space usage doesn't exist free – show memory and swap usage mv file1 file2 – rename or move file1 to file2 whereis app – show possible locations of app if file2 is an existing directory, moves file1 into which app – show which app will be run by default directory file2 ln -s file link – create symbolic link link to file Compression touch file – create or update file tar cf file.tar files – create a tar named cat > file – places standard input into file file.tar containing files more file – output the contents of file tar xf file.tar – extract the files from file.tar head file – output the first 10 lines of file tar czf file.tar.gz files – create a tar with tail file – output the last 10 lines
    [Show full text]
  • A Brief Introduction to Unix-2019-AMS
    A Brief Introduction to Linux/Unix – AMS 2019 Pete Pokrandt UW-Madison AOS Systems Administrator [email protected] Twitter @PTH1 Brief Intro to Linux/Unix o Brief History of Unix o Basics of a Unix session o The Unix File System o Working with Files and Directories o Your Environment o Common Commands Brief Intro to Unix (contd) o Compilers, Email, Text processing o Image Processing o The vi editor History of Unix o Created in 1969 by Kenneth Thompson and Dennis Ritchie at AT&T o Revised in-house until first public release 1977 o 1977 – UC-Berkeley – Berkeley Software Distribution (BSD) o 1983 – Sun Workstations produced a Unix Workstation o AT&T unix -> System V History of Unix o Today – two main variants, but blended o System V (Sun Solaris, SGI, Dec OSF1, AIX, linux) o BSD (Old SunOS, linux, Mac OSX/MacOS) History of Unix o It’s been around for a long time o It was written by computer programmers for computer programmers o Case sensitive, mostly lowercase abbreviations Basics of a Unix Login Session o The Shell – the command line interface, where you enter commands, etc n Some common shells Bourne Shell (sh) C Shell (csh) TC Shell (tcsh) Korn Shell (ksh) Bourne Again Shell (bash) [OSX terminal] Basics of a Unix Login Session o Features provided by the shell n Create an environment that meets your needs n Write shell scripts (batch files) n Define command aliases n Manipulate command history n Automatically complete the command line (tab) n Edit the command line (arrow keys in tcsh) Basics of a Unix Login Session o Logging in to a unix
    [Show full text]
  • College Holiday : May 24
    Sp21 CIS -18A-41Z: Introduction to Linux/Unix Midterm ONE: Apr 28, Midterm TWO: May 26 , Finals: Jun 21 CENSUS DATE: Apr 19 College Holiday : May 24 Assignment Due dates : Apr 12,19,26, May 3,10,17,25,31, Jun 7,14 No Makeups for any of the above. If you miss, you lose points. Plan accordingly. (Zoom, synchronous M/W, 6PM - 7 PM - Window ) (See http://www.deanza.edu/calendar/finalexams.html) Instructor communicates with student ONLY. • Zoom lectures attendance is not mandatory. Sessions will be recorded and shared in Canvas. • Students need to take midterms and finals -in-the-alloted-time-date. If student does not show up for midterm/finals then 0 points. • FINALS will be on Jun 21, via CANVAS. All times PDT. • If you have questions on assignment grade, email me and we will discuss and resolve it. Any feedback about your work is going to be via email M/W 6 thru 750PM • Do not use Shell programming/Sed/Awk/Perl/Python/Posix expressions for this class in your assignments. Stick to Syllabus. Refer to CANVAS for assignments ! College academic Calendar:Spring 2021 http://deanza.fhda.edu/calendar/springdates.html Instructor Information • Name: Lalitha Krishnamurthy • Email: krishnamurthylalitha at fhda dot edu • Email only in canvas please. • Online Lab Hours: Wednesdays 845pm - 10pm (via Canvas) • Office Hours: Available via synchronous zoom: Mondays 830-930pm PDT. • Lecture timings for CIS18A : M/W 6 PM - 750 PM - Online/Zoom via CANVAS Students, please read the following and plan accordingly • All communication with instructor is via Canvas for assignments and quizzes.
    [Show full text]
  • Introduction to Unix Part I: the Essentials
    Introduction to Unix Part I: The Essentials Frederick J Tan Bioinformatics Research Faculty Carnegie Institution of Washington, Department of Embryology 9 April 2013 Unix, Linux, Ubuntu, Oh My! 2 A Three Hour Tour Part I: The Essentials client-server model, command-line interface, navigation, viewing files, searching, finding help Part II: Special Topics account settings, multi-tasking, programming, installing programs, file systems, system administration 3 The Awesome Power of the Client-Server Model 4 A Tale of Two Interfaces Command Line Graphical Terminal.app, Unix shell Finder.app, Galaxy breadth, cutting-edge discovery, visualization 5 Running Programs Using the Command-Line Interface command-line graphical type in the name of the to run a program program and hit <ENTER> double click on an icon (e.g. bowtie2) type in options after the program, to modify how a click on check boxes, before hitting <ENTER> program operates select from pull-down menus (e.g. bowtie2 --very-sensitive) 6 The Anatomy of a Shell Prompt workshop@ubuntu:~$ The text in between the colon (:) The $ symbol indicates The symbol and the dollar sign ($) indicates that the server is ready to indicates where what what directory you are in. perform a command. you type in will appear. /home/workshop$ $ ssh [email protected] 7 Task 1: Connect to your server and start top with -i option Start VirtualBox Start Ubuntu Secure SHell $ ssh [email protected] <ENTER> <SPACE> Shell Prompt /home/workshop$ <TAB> Start top -i $ top -i <CTRL> <UP> <DOWN> 8 Task 2: Figure
    [Show full text]
  • Great Lakes Cheat Sheet Less File Prints Content of File Page by Page Guide to General L Inux (Bash) a Nd S Lurm C Ommands Head File Print First 10 Lines of File
    Viewing and editing text files cat file Print entire content of file Great Lakes Cheat Sheet less file Prints content of file page by page Guide to general L inux (Bash) and S lurm c ommands head file Print first 10 lines of file tail file Print last 10 lines of file Accessing Great Lakes nano Simple, easy to use text editor Logging in from a terminal (Duo required) vim Minimalist yet powerful text editor ssh uniqname @greatlakes.arc-ts.umich.edu emacs Extensible and customizable text editor Transferring files between Great Lakes and your system scp input uniqname@ greatlakes-xfer.arc-ts.umich.edu: output Advanced file management scp -r i nput uniqname@ greatlakes-xfer.arc-ts.umich.edu:o utput scp uniqname@ greatlakes-xfer.arc-ts.umich.edu:i nput output chmod Change read/write/execute permissions which cmd List the full file path of a command GUI Clients PuTTY SSH client for Windows whereis cmd List all related file paths (binary, source, manual, etc.) of a command WinSCP SCP client for Windows du dir List size of directory and its subdirectories FileZilla FTP client for Windows, Mac, and Linux find Find file in a directory Basic Linux file management Aliases and system variables man command Display the manual page for command alias Create shortcut to command pwd Print out the present working directory env Lists all environment variables ls List the files in the current directory export var = val Create environment variable $ var with value ls -lh Show long, human-readable listing val ls dir List files inside directory dir echo $var Print the value of variable $var rm file Delete file .bashrc File that defines user aliases and variables mkdir dir Create empty directory called dir Input and output redirection rmdir dir Remove empty directory dir $( command) Runs command first, then inserts output to the rm -r dir Remove directory dir and all contents rest of the overall command cd dir Change working directory to dir < Standard input redirection cd .
    [Show full text]
  • 07 07 Unixintropart2 Lucio Week 3
    Unix Basics Command line tools Daniel Lucio Overview • Where to use it? • Command syntax • What are commands? • Where to get help? • Standard streams(stdin, stdout, stderr) • Pipelines (Power of combining commands) • Redirection • More Information Introduction to Unix Where to use it? • Login to a Unix system like ’kraken’ or any other NICS/ UT/XSEDE resource. • Download and boot from a Linux LiveCD either from a CD/DVD or USB drive. • http://www.puppylinux.com/ • http://www.knopper.net/knoppix/index-en.html • http://www.ubuntu.com/ Introduction to Unix Where to use it? • Install Cygwin: a collection of tools which provide a Linux look and feel environment for Windows. • http://cygwin.com/index.html • https://newton.utk.edu/bin/view/Main/Workshop0InstallingCygwin • Online terminal emulator • http://bellard.org/jslinux/ • http://cb.vu/ • http://simpleshell.com/ Introduction to Unix Command syntax $ command [<options>] [<file> | <argument> ...] Example: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file Introduction to Unix What are commands? • An executable program (date) • A command built into the shell itself (cd) • A shell program/function • An alias Introduction to Unix Bash commands (Linux) alias! crontab! false! if! mknod! ram! strace! unshar! apropos! csplit! fdformat! ifconfig! more! rcp! su! until! apt-get! cut! fdisk! ifdown! mount! read! sudo! uptime! aptitude! date! fg! ifup! mtools! readarray! sum! useradd! aspell! dc! fgrep! import! mtr! readonly! suspend! userdel! awk! dd! file! install! mv! reboot! symlink!
    [Show full text]
  • BASH Programming − Introduction HOW−TO BASH Programming − Introduction HOW−TO
    BASH Programming − Introduction HOW−TO BASH Programming − Introduction HOW−TO Table of Contents BASH Programming − Introduction HOW−TO.............................................................................................1 by Mike G mikkey at dynamo.com.ar.....................................................................................................1 1.Introduction...........................................................................................................................................1 2.Very simple Scripts...............................................................................................................................1 3.All about redirection.............................................................................................................................1 4.Pipes......................................................................................................................................................1 5.Variables...............................................................................................................................................2 6.Conditionals..........................................................................................................................................2 7.Loops for, while and until.....................................................................................................................2 8.Functions...............................................................................................................................................2
    [Show full text]
  • Unix Commands January 2003 Unix
    Unix Commands Unix January 2003 This quick reference lists commands, including a syntax diagram 2. Commands and brief description. […] indicates an optional part of the 2.1. Command-line Special Characters command. For more detail, use: Quotes and Escape man command Join Words "…" Use man tcsh for the command language. Suppress Filename, Variable Substitution '…' Escape Character \ 1. Files Separation, Continuation 1.1. Filename Substitution Command Separation ; Wild Cards ? * Command-Line Continuation (at end of line) \ Character Class (c is any single character) [c…] 2.2. I/O Redirection and Pipes Range [c-c] Home Directory ~ Standard Output > Home Directory of Another User ~user (overwrite if exists) >! List Files in Current Directory ls [-l] Appending to Standard Output >> List Hidden Files ls -[l]a Standard Input < Standard Error and Output >& 1.2. File Manipulation Standard Error Separately Display File Contents cat filename ( command > output ) >& errorfile Copy cp source destination Pipes/ Pipelines command | filter [ | filter] Move (Rename) mv oldname newname Filters Remove (Delete) rm filename Word/Line Count wc [-l] Create or Modify file pico filename Last n Lines tail [-n] Sort lines sort [-n] 1.3. File Properties Multicolumn Output pr -t Seeing Permissions filename ls -l List Spelling Errors ispell Changing Permissions chmod nnn filename chmod c=p…[,c=p…] filename 2.3. Searching with grep n, a digit from 0 to 7, sets the access level for the user grep Command grep "pattern" filename (owner), group, and others (public), respectively. c is one of: command | grep "pattern" u–user; g–group, o–others, or a–all. p is one of: r–read Search Patterns access, w–write access, or x–execute access.
    [Show full text]
  • Linux Command Line Cheat Sheet by Davechild
    Linux Command Line Cheat Sheet by DaveChild Bash Commands ls Options Nano Shortcuts uname -a Show system and kernel -a Show all (including hidden) Files head -n1 /etc/issue Show distribution -R Recursive list Ctrl-R Read file mount Show mounted filesystems -r Reverse order Ctrl-O Save file date Show system date -t Sort by last modified Ctrl-X Close file uptime Show uptime -S Sort by file size Cut and Paste whoami Show your username -l Long listing format ALT-A Start marking text man command Show manual for command -1 One file per line CTRL-K Cut marked text or line -m Comma-separated output CTRL-U Paste text Bash Shortcuts -Q Quoted output Navigate File CTRL-c Stop current command ALT-/ End of file Search Files CTRL-z Sleep program CTRL-A Beginning of line CTRL-a Go to start of line grep pattern Search for pattern in files CTRL-E End of line files CTRL-e Go to end of line CTRL-C Show line number grep -i Case insensitive search CTRL-u Cut from start of line CTRL-_ Go to line number grep -r Recursive search CTRL-k Cut to end of line Search File grep -v Inverted search CTRL-r Search history CTRL-W Find find /dir/ - Find files starting with name in dir !! Repeat last command ALT-W Find next name name* !abc Run last command starting with abc CTRL-\ Search and replace find /dir/ -user Find files owned by name in dir !abc:p Print last command starting with abc name More nano info at: !$ Last argument of previous command find /dir/ - Find files modifed less than num http://www.nano-editor.org/docs.php !* All arguments of previous command mmin num minutes ago in dir Screen Shortcuts ^abc^123 Run previous command, replacing abc whereis Find binary / source / manual for with 123 command command screen Start a screen session.
    [Show full text]
  • An Introduction to Unix Power Tools
    Introduction Unix in depth An Introduction to Unix Power Tools Randolph Langley Department of Computer Science Florida State University August 27, 2008 university-logo Unix Tools: Introduction History of Unix Introduction Unix Today Unix in depth Command line versus graphical interfaces Introduction to COP 4342, Fall History of Unix Shells: what they are and how they work Commands: built-in, aliases, program invocations, structural Tree-structured resources: processes and files Finding more information: man, info, and Google. university-logo Unix Tools: Introduction History of Unix Introduction Unix Today Unix in depth Command line versus graphical interfaces Unix is now more than 30 years old. It first began in 1969. Great Reference on Unix origins: The Evolution of the Unix Time-sharing System, Ritchie at http://cm.bell-labs.com/cm/cs/who/dmr/hist.html university-logo Unix Tools: Introduction History of Unix Introduction Unix Today Unix in depth Command line versus graphical interfaces Original Unix Goals Simplicity Multi-user support Portability Universities could get source code easily Users shared ideas, programs, bug fixes Unix Is Based on Collaboration Rather than a product from a manufacturer, Unix began as a collaborative effort designed to let a small group of people work closely together university-logo Unix Tools: Introduction History of Unix Introduction Unix Today Unix in depth Command line versus graphical interfaces The development of early Unix was user-driven rather than corporate-driven The first meeting of the Unix User Group was in May, 1974; this group would late become the Usenix Association Unix, Linux, and the BSDs Note that Linux and the BSDs (FreeBSD, OpenBSD, NetBSD) now flourish in similiar “open source” environments (http://www.freebsd.org, http://www.openbsd.org, http://www.netbsd.org) university-logo Unix Tools: Introduction History of Unix Introduction Unix Today Unix in depth Command line versus graphical interfaces Started at AT&T’s Bell Labs, originally derived from MULTICS.
    [Show full text]
  • Linux/Unix: the Command Line
    Linux/Unix: The Command Line Adapted from materials by Dan Hood Essentials of Linux • Kernel ú Allocates time and memory, handles file operations and system calls. • Shell ú An interface between the user and the kernel. • File System ú Groups all files together in a hierarchical tree structure. 2 Format of UNIX Commands • UNIX commands can be very simple one word commands, or they can take a number of additional arguments (parameters) as part of the command. In general, a UNIX command has the following form: command options(s) filename(s) • The command is the name of the utility or program that we are going to execute. • The options modify the way the command works. It is typical for these options to have be a hyphen followed by a single character, such as -a. It is also a common convention under Linux to have options that are in the form of 2 hyphens followed by a word or hyphenated words, such as --color or --pretty-print. • The filename is the last argument for a lot of UNIX commands. It is simply the file or files that you want the command to work on. Not all commands work on files, such as ssh, which takes the name of a host as its argument. Common UNIX Conventions • In UNIX, the command is almost always entered in all lowercase characters. • Typically any options come before filenames. • Many times, individual options may need a word after them to designate some additional meaning to the command. Familiar Commands: scp (Secure CoPy) • The scp command is a way to copy files back and forth between multiple computers.
    [Show full text]