SlideShare a Scribd company logo
Using UNIX This document gives an overview of how to use UNIX. I don’t know who wrote this, but it’s very useful.
Getting More Help You can get more information about any of the topics discussed here by typing “ man <topic name>”,  for instance,     man ls If you don’t quite remember the name of the command, you can say “ apropos <topic name”, for instance     apropos directory There are also many good books in the library that describe all this.
Remember This Picture? There are many standard applications: file system commands interactive shells text editors compilers text processing Applications Libraries \ Kernel (OS) Hardware
Logging In To log in to a Unix machine you can either: sit at the  console  (the computer itself) access via the net (using telnet, rsh, ssh, kermit, or some other remote access client). The system prompts you for your username and password. Usernames and passwords are case sensitive!
Session Startup Once you log in, your shell will be started and it will display a prompt. When the shell is started it looks in your home directory for some customization files. You can change the shell prompt, your PATH, and a bunch of other things by creating customization files.
Your Home Directory Every Unix process* has a notion of the “current working directory”. Your shell (which is a process) starts with the current working directory set to your home directory.
Interacting with the Shell The shell prints a prompt and waits for you to type in a command. The shell can deal with a couple of types of commands: shell internals - commands that the shell handles directly. External programs - the shell runs a program for you.
Some Simple Commands Here are some simple commands to get you started: ls lists file names (like DOS dir command). who lists users currently logged in. date shows the current time and date. pwd print working directory
The  ls  command The ls command displays the names of some files. If you give it the name of a directory as a  command line parameter  it will list all the files in the named directory.
ls  Command Line Options We can modify the output format of the  ls  program with a  command line option . The ls command support a bunch of options: l  long  format (include file times, owner and permissions) a   all  (shows hidden* files as well as regular files) F   include special char to indicate file types. *hidden files have names that start with &quot;.&quot;
Moving Around in the File System There cd command can change the current working directory: cd   c hange  d irectory The general form is: cd [directoryname]
cd With no parameter, the  cd  command changes the current directory to your home directory. You can also give  cd  a relative or absolute pathname: cd /usr cd ..
Some more commands and command line options ls -R   will list everything in a directory and in all the subdirectories recursively (the entire hierarchy). you might want to know that Ctrl-C will cancel a command (stop the command)! pwd : print working directory df : shows what disk holds a directory.
Copying Files The  cp  command copies files: cp [options] source dest The source is the name of the file you want to copy. dest is the name of the new file. source and dest can be relative or absolute.
Another form of  cp If you specify a dest that is a directory, cp will put a copy of the source in the directory. The filename will be the same as the filename of the source file.  cp [options] source destdir
Deleting (removing) Files The  rm  command deletes files: rm [options] names... rm  stands for &quot;remove&quot;. You can remove many files at once: rm foo /tmp/blah /users/clinton/intern
File attributes Every file has some attributes: Access Times:  when the file was created when the file was last changed when the file was last read Size Owners (user and group) Permissions
File Time Attributes Time Attributes: when the file was last changed ls -l when the file was created* ls -lc when the file was last read (accessed) ls -ul * actually it’s the time the file status last changed.
Other filesystem and file commands mkdir make directory rmdir remove directory touch change file timestamp (can also create a blank file) cat concatenate files and print out to terminal.
Shells Also known as: Unix Command Interpreter
Shell as a user interface A shell is a command interpreter that turns text that you type (at the command line) in to actions: runs a program, perhaps the  ls  program. allows you to edit a  command line . can establish alternative sources of input and destinations for output for programs.
Running a Program You type in the name of a program and some command line options: The shell reads this line, finds the program and runs it, feeding it the options you specified. The shell establishes 3 I/O  channels : Standard Input Standard Output Standard Error
Programs and Standard I/O Program Standard Input (STDIN) Standard Output (STDOUT) Standard Error (STDERR)
Unix Commands Most Unix commands (programs): read something from standard input. send something to standard output (typically depends on what the input is!). send error messages to standard error.
Defaults for I/O When a shell runs a program for you: standard input is your keyboard. standard output is your screen/window. standard error is your screen/window.
Terminating Standard Input If standard input is your keyboard, you can type stuff in that goes to a program. To end the input you press Ctrl-D (^D) on a line by itself, this ends the input  stream . The shell is a program that reads from standard input. What happens when you give the shell ^D?
Popular Shells sh Bourne Shell  ksh  Korn Shell  csh  C Shell bash  Bourne-Again Shell
Customization Each shell supports some customization. User prompt Where to find mail Shortcuts The customization takes place in  startup  files – files that are read by the shell when it starts up
Startup files sh,ksh:  /etc/profile (system defaults)    ~/.profile bash: ~/.bash_profile ~/.bashrc ~/.bash_logout csh: ~/.cshrc ~/.login ~/.logout
Wildcards (metacharacters) for filename abbreviation When you type in a command line the shell treats some characters as special. These special characters make it easy to specify filenames. The shell processes what you give it, using the special characters to replace your command line with one that includes a bunch of file names.
The special character * * matches anything. If you give the shell * by itself (as a command line argument) the shell will remove the * and replace it with all the filenames in the current directory. “ a*b ”  matches all files in the current directory that start with  a  and end with  b .
Understanding * The  echo  command prints out whatever you give it: > echo hi hi Try this: > echo *
* and  ls Things to try: ls * ls –al * ls a* ls *b
Input Redirection The shell can attach things other than your keyboard to standard input. A file (the contents of the file are fed to a program as if you typed it). A pipe (the output of another program is fed as input as if you typed it).
Output Redirection The shell can attach things other than your screen to standard output (or stderr). A file (the output of a program is stored in  file). A pipe (the output of a program is fed as input to another program).
How to tell the shell to redirect things To tell the shell to store the output of your program in a file, follow the command line for the program with the “>” character followed by the filename: ls > lsout the command above will create a file named  lsout  and put the output of the  ls  command in the file.
Input redirection To tell the shell to get standard input from a file, use the “<“ character: sort < nums The command above would sort the lines in the file nums and send the result to stdout.
You can do both! sort < nums > sortednums tr a-z A-Z < letter > rudeletter
Pipes A pipe is a holder for a stream of data. A pipe can be used to hold the output of one program and feed it to the input of another. prog1 prog2 STDOUT STDIN
Asking for a pipe Separate 2 commands with the “|” character. The shell does all the work! ls | sort  ls | sort > sortedls
Shell Variables The shell keeps track of a set of parameter names and values. Some of these parameters determine the behavior of the shell. We can access these variables: set new values for some to customize the shell. find out the value of some to help accomplish a task.
Example Shell Variables sh / ksh / bash PWD   current working directory PATH   list of places to look for commands HOME   home directory of user MAIL   where your email is stored TERM   what kind of terminal you have HISTFILE   where your command history  is saved
Displaying Shell Variables Prefix the name of a shell variable with &quot;$&quot;. The  echo  command will do: echo $HOME echo $PATH You can use these variables on any command line: ls -al $HOME
Setting Shell Variables You can change the value of a shell variable with an assignment command (this is a shell  builtin  command): HOME=/etc PATH=/usr/bin:/usr/etc:/sbin NEWVAR=&quot;blah blah blah&quot;
set  command (shell builtin) The  set  command with no parameters will print out a list of all the shell varibles. You'll probably get a pretty long list… Depending on your shell, you might get other stuff as well...
The  PATH Each time you give the shell a command line it does the following: Checks to see if the command is a shell built-in. If not - tries to find a program whose name (the filename) is the same as the command. The  PATH  variable tells the shell where to look for programs (non built-in commands).
echo  $PATH The  PATH  is a list of &quot;:&quot; delimited directories. The  PATH  is a list and a  search order . You can add stuff to your PATH by changing the shell startup file (on RCS change  ~/.bashrc )
Job Control  The shell allows you to manage  jobs place  jobs  in the  background move a job to the foreground suspend a job kill a job
Background jobs If you follow a command line with &quot;&&quot;, the shell will run the  job  in the background. you don't need to wait for the job to complete, you can type in a new command right away. you can have a bunch of jobs running at once. you can do all this with a single terminal (window). ls -lR > saved_ls &
Listing jobs The command  jobs  will list all background jobs: > jobs [1] Running  ls -lR > saved_ls & > The shell assigns a number to each job (this one is job number 1).
Suspending and Killing the Foreground Job You can suspend the foreground job by pressing ^Z (Ctrl-Z).  Suspend means the job is stopped, but not dead. The job will show up in the  jobs  output. You can  kill  the foreground job by pressing ^C (Ctrl-C).  It's gone...
Quoting - the problem We've already seen that some characters mean something special when typed on the command line:  * ? []   What if we don't want the shell to treat these as special - we really mean *, not all the files in the current directory: echo here is a star *
Quoting - the solution To turn off special meaning - surround a string with double quotes: > echo here is a star &quot;*&quot; > here is a star *
Quoting Exceptions Some  special  characters are  not   ignored even if inside double quotes: $ (prefix for variable names) &quot; the quote character itself \  slash is always something special (\n) you can use \$ to mean $ or \&quot; to mean &quot; echo &quot;This is a quote \&quot; &quot;
Single quotes You can use single quotes just like double quotes. Nothing (except  ' ) is treated special. >  echo 'This is a quote \&quot; ' This is a quote \&quot; >
Backquotes are different! If you surround a string with backquotes the string is replaced with the result of running the command in backquotes: > echo `ls` foo fee file? > PS1=`date` Tue Jan 25 00:32:04 EST 2000 new prompt!
Programming Text editors emacs, vi Can also use any PC editor if you can get at the files from your PC. Compilers – gcc. Debuggers: gdb xxgdb

More Related Content

PPT
Airlover 20030324 1
PPT
Talk Unix Shell Script 1
PPT
Talk Unix Shell Script
PPT
Unix Basics
PPT
Unix And C
PDF
Unix Commands
PPTX
Bash Shell Scripting
PDF
Shell scripting
Airlover 20030324 1
Talk Unix Shell Script 1
Talk Unix Shell Script
Unix Basics
Unix And C
Unix Commands
Bash Shell Scripting
Shell scripting

What's hot (20)

PPT
Shell Scripting
PPT
Unix And Shell Scripting
PDF
Quick start bash script
PPTX
Unix shell scripting basics
PPT
Chap06
PDF
Introduction to shell scripting
PPT
Unix Shell Scripting Basics
PPT
Linux shell scripting
PPT
Unix Shell Scripting Basics
PDF
Introduction to Bash Scripting, Zyxware Technologies, CSI Students Convention...
PPTX
Bash Shell Scripting
PPTX
Unix - Shell Scripts
PPT
Bash shell
PDF
Shell scripting
PDF
Shell scripting
ODP
Shellscripting
PDF
Intro to Linux Shell Scripting
PPTX
Easiest way to start with Shell scripting
PPTX
Unix shell scripts
RTF
Unix lab manual
Shell Scripting
Unix And Shell Scripting
Quick start bash script
Unix shell scripting basics
Chap06
Introduction to shell scripting
Unix Shell Scripting Basics
Linux shell scripting
Unix Shell Scripting Basics
Introduction to Bash Scripting, Zyxware Technologies, CSI Students Convention...
Bash Shell Scripting
Unix - Shell Scripts
Bash shell
Shell scripting
Shell scripting
Shellscripting
Intro to Linux Shell Scripting
Easiest way to start with Shell scripting
Unix shell scripts
Unix lab manual
Ad

Similar to Using Unix (20)

DOCX
lec4.docx
PDF
21bUc8YeDzZpE
PDF
21bUc8YeDzZpE
PDF
(Ebook) linux shell scripting tutorial
PDF
21bUc8YeDzZpE
PPT
01c shell
PDF
Shell intro
ODP
Linux introduction-commands2338
ODP
Linux introduction-commands2338
ODP
Linux Introduction (Commands)
PDF
DOC
58518522 study-aix
PPTX
linux chapter 5.pptx lesson About introduction to linux
PPTX
Linux powerpoint
PPT
intro unix/linux 03
PPT
8.1.intro unix
PDF
Linux Basics
PDF
Unix and Linux - The simple introduction
PPTX
lec4.docx
21bUc8YeDzZpE
21bUc8YeDzZpE
(Ebook) linux shell scripting tutorial
21bUc8YeDzZpE
01c shell
Shell intro
Linux introduction-commands2338
Linux introduction-commands2338
Linux Introduction (Commands)
58518522 study-aix
linux chapter 5.pptx lesson About introduction to linux
Linux powerpoint
intro unix/linux 03
8.1.intro unix
Linux Basics
Unix and Linux - The simple introduction
Ad

More from Dr.Ravi (19)

PDF
Corporate Overview
PDF
Excel For The Ceo
PDF
Project Specs Pf
PDF
Pf Day5
PDF
Assignments Programming Fundamentals
PDF
Hdd Chssc
PDF
Chssc Day3
PDF
Chssc Day1
PDF
Pf Day3
PDF
Ldd Pf
PDF
Chssc Assignments
PDF
Chssc Day4
PDF
Chssc Day2
PPT
Shell Scripts
PPT
Unix Lec2
PDF
Unix Book
PPT
Unix Basics 04sp
PDF
Wicked Cool Shell Scripts
PPT
SAP INTRO
Corporate Overview
Excel For The Ceo
Project Specs Pf
Pf Day5
Assignments Programming Fundamentals
Hdd Chssc
Chssc Day3
Chssc Day1
Pf Day3
Ldd Pf
Chssc Assignments
Chssc Day4
Chssc Day2
Shell Scripts
Unix Lec2
Unix Book
Unix Basics 04sp
Wicked Cool Shell Scripts
SAP INTRO

Recently uploaded (20)

PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Approach and Philosophy of On baking technology
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Modernizing your data center with Dell and AMD
PPTX
Big Data Technologies - Introduction.pptx
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Network Security Unit 5.pdf for BCA BBA.
Machine learning based COVID-19 study performance prediction
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Building Integrated photovoltaic BIPV_UPV.pdf
Review of recent advances in non-invasive hemoglobin estimation
Approach and Philosophy of On baking technology
MYSQL Presentation for SQL database connectivity
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Modernizing your data center with Dell and AMD
Big Data Technologies - Introduction.pptx
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Reach Out and Touch Someone: Haptics and Empathic Computing
20250228 LYD VKU AI Blended-Learning.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx

Using Unix

  • 1. Using UNIX This document gives an overview of how to use UNIX. I don’t know who wrote this, but it’s very useful.
  • 2. Getting More Help You can get more information about any of the topics discussed here by typing “ man <topic name>”, for instance,  man ls If you don’t quite remember the name of the command, you can say “ apropos <topic name”, for instance  apropos directory There are also many good books in the library that describe all this.
  • 3. Remember This Picture? There are many standard applications: file system commands interactive shells text editors compilers text processing Applications Libraries \ Kernel (OS) Hardware
  • 4. Logging In To log in to a Unix machine you can either: sit at the console (the computer itself) access via the net (using telnet, rsh, ssh, kermit, or some other remote access client). The system prompts you for your username and password. Usernames and passwords are case sensitive!
  • 5. Session Startup Once you log in, your shell will be started and it will display a prompt. When the shell is started it looks in your home directory for some customization files. You can change the shell prompt, your PATH, and a bunch of other things by creating customization files.
  • 6. Your Home Directory Every Unix process* has a notion of the “current working directory”. Your shell (which is a process) starts with the current working directory set to your home directory.
  • 7. Interacting with the Shell The shell prints a prompt and waits for you to type in a command. The shell can deal with a couple of types of commands: shell internals - commands that the shell handles directly. External programs - the shell runs a program for you.
  • 8. Some Simple Commands Here are some simple commands to get you started: ls lists file names (like DOS dir command). who lists users currently logged in. date shows the current time and date. pwd print working directory
  • 9. The ls command The ls command displays the names of some files. If you give it the name of a directory as a command line parameter it will list all the files in the named directory.
  • 10. ls Command Line Options We can modify the output format of the ls program with a command line option . The ls command support a bunch of options: l long format (include file times, owner and permissions) a all (shows hidden* files as well as regular files) F include special char to indicate file types. *hidden files have names that start with &quot;.&quot;
  • 11. Moving Around in the File System There cd command can change the current working directory: cd c hange d irectory The general form is: cd [directoryname]
  • 12. cd With no parameter, the cd command changes the current directory to your home directory. You can also give cd a relative or absolute pathname: cd /usr cd ..
  • 13. Some more commands and command line options ls -R will list everything in a directory and in all the subdirectories recursively (the entire hierarchy). you might want to know that Ctrl-C will cancel a command (stop the command)! pwd : print working directory df : shows what disk holds a directory.
  • 14. Copying Files The cp command copies files: cp [options] source dest The source is the name of the file you want to copy. dest is the name of the new file. source and dest can be relative or absolute.
  • 15. Another form of cp If you specify a dest that is a directory, cp will put a copy of the source in the directory. The filename will be the same as the filename of the source file. cp [options] source destdir
  • 16. Deleting (removing) Files The rm command deletes files: rm [options] names... rm stands for &quot;remove&quot;. You can remove many files at once: rm foo /tmp/blah /users/clinton/intern
  • 17. File attributes Every file has some attributes: Access Times: when the file was created when the file was last changed when the file was last read Size Owners (user and group) Permissions
  • 18. File Time Attributes Time Attributes: when the file was last changed ls -l when the file was created* ls -lc when the file was last read (accessed) ls -ul * actually it’s the time the file status last changed.
  • 19. Other filesystem and file commands mkdir make directory rmdir remove directory touch change file timestamp (can also create a blank file) cat concatenate files and print out to terminal.
  • 20. Shells Also known as: Unix Command Interpreter
  • 21. Shell as a user interface A shell is a command interpreter that turns text that you type (at the command line) in to actions: runs a program, perhaps the ls program. allows you to edit a command line . can establish alternative sources of input and destinations for output for programs.
  • 22. Running a Program You type in the name of a program and some command line options: The shell reads this line, finds the program and runs it, feeding it the options you specified. The shell establishes 3 I/O channels : Standard Input Standard Output Standard Error
  • 23. Programs and Standard I/O Program Standard Input (STDIN) Standard Output (STDOUT) Standard Error (STDERR)
  • 24. Unix Commands Most Unix commands (programs): read something from standard input. send something to standard output (typically depends on what the input is!). send error messages to standard error.
  • 25. Defaults for I/O When a shell runs a program for you: standard input is your keyboard. standard output is your screen/window. standard error is your screen/window.
  • 26. Terminating Standard Input If standard input is your keyboard, you can type stuff in that goes to a program. To end the input you press Ctrl-D (^D) on a line by itself, this ends the input stream . The shell is a program that reads from standard input. What happens when you give the shell ^D?
  • 27. Popular Shells sh Bourne Shell ksh Korn Shell csh C Shell bash Bourne-Again Shell
  • 28. Customization Each shell supports some customization. User prompt Where to find mail Shortcuts The customization takes place in startup files – files that are read by the shell when it starts up
  • 29. Startup files sh,ksh: /etc/profile (system defaults) ~/.profile bash: ~/.bash_profile ~/.bashrc ~/.bash_logout csh: ~/.cshrc ~/.login ~/.logout
  • 30. Wildcards (metacharacters) for filename abbreviation When you type in a command line the shell treats some characters as special. These special characters make it easy to specify filenames. The shell processes what you give it, using the special characters to replace your command line with one that includes a bunch of file names.
  • 31. The special character * * matches anything. If you give the shell * by itself (as a command line argument) the shell will remove the * and replace it with all the filenames in the current directory. “ a*b ” matches all files in the current directory that start with a and end with b .
  • 32. Understanding * The echo command prints out whatever you give it: > echo hi hi Try this: > echo *
  • 33. * and ls Things to try: ls * ls –al * ls a* ls *b
  • 34. Input Redirection The shell can attach things other than your keyboard to standard input. A file (the contents of the file are fed to a program as if you typed it). A pipe (the output of another program is fed as input as if you typed it).
  • 35. Output Redirection The shell can attach things other than your screen to standard output (or stderr). A file (the output of a program is stored in file). A pipe (the output of a program is fed as input to another program).
  • 36. How to tell the shell to redirect things To tell the shell to store the output of your program in a file, follow the command line for the program with the “>” character followed by the filename: ls > lsout the command above will create a file named lsout and put the output of the ls command in the file.
  • 37. Input redirection To tell the shell to get standard input from a file, use the “<“ character: sort < nums The command above would sort the lines in the file nums and send the result to stdout.
  • 38. You can do both! sort < nums > sortednums tr a-z A-Z < letter > rudeletter
  • 39. Pipes A pipe is a holder for a stream of data. A pipe can be used to hold the output of one program and feed it to the input of another. prog1 prog2 STDOUT STDIN
  • 40. Asking for a pipe Separate 2 commands with the “|” character. The shell does all the work! ls | sort ls | sort > sortedls
  • 41. Shell Variables The shell keeps track of a set of parameter names and values. Some of these parameters determine the behavior of the shell. We can access these variables: set new values for some to customize the shell. find out the value of some to help accomplish a task.
  • 42. Example Shell Variables sh / ksh / bash PWD current working directory PATH list of places to look for commands HOME home directory of user MAIL where your email is stored TERM what kind of terminal you have HISTFILE where your command history is saved
  • 43. Displaying Shell Variables Prefix the name of a shell variable with &quot;$&quot;. The echo command will do: echo $HOME echo $PATH You can use these variables on any command line: ls -al $HOME
  • 44. Setting Shell Variables You can change the value of a shell variable with an assignment command (this is a shell builtin command): HOME=/etc PATH=/usr/bin:/usr/etc:/sbin NEWVAR=&quot;blah blah blah&quot;
  • 45. set command (shell builtin) The set command with no parameters will print out a list of all the shell varibles. You'll probably get a pretty long list… Depending on your shell, you might get other stuff as well...
  • 46. The PATH Each time you give the shell a command line it does the following: Checks to see if the command is a shell built-in. If not - tries to find a program whose name (the filename) is the same as the command. The PATH variable tells the shell where to look for programs (non built-in commands).
  • 47. echo $PATH The PATH is a list of &quot;:&quot; delimited directories. The PATH is a list and a search order . You can add stuff to your PATH by changing the shell startup file (on RCS change ~/.bashrc )
  • 48. Job Control The shell allows you to manage jobs place jobs in the background move a job to the foreground suspend a job kill a job
  • 49. Background jobs If you follow a command line with &quot;&&quot;, the shell will run the job in the background. you don't need to wait for the job to complete, you can type in a new command right away. you can have a bunch of jobs running at once. you can do all this with a single terminal (window). ls -lR > saved_ls &
  • 50. Listing jobs The command jobs will list all background jobs: > jobs [1] Running ls -lR > saved_ls & > The shell assigns a number to each job (this one is job number 1).
  • 51. Suspending and Killing the Foreground Job You can suspend the foreground job by pressing ^Z (Ctrl-Z). Suspend means the job is stopped, but not dead. The job will show up in the jobs output. You can kill the foreground job by pressing ^C (Ctrl-C). It's gone...
  • 52. Quoting - the problem We've already seen that some characters mean something special when typed on the command line: * ? [] What if we don't want the shell to treat these as special - we really mean *, not all the files in the current directory: echo here is a star *
  • 53. Quoting - the solution To turn off special meaning - surround a string with double quotes: > echo here is a star &quot;*&quot; > here is a star *
  • 54. Quoting Exceptions Some special characters are not ignored even if inside double quotes: $ (prefix for variable names) &quot; the quote character itself \ slash is always something special (\n) you can use \$ to mean $ or \&quot; to mean &quot; echo &quot;This is a quote \&quot; &quot;
  • 55. Single quotes You can use single quotes just like double quotes. Nothing (except ' ) is treated special. > echo 'This is a quote \&quot; ' This is a quote \&quot; >
  • 56. Backquotes are different! If you surround a string with backquotes the string is replaced with the result of running the command in backquotes: > echo `ls` foo fee file? > PS1=`date` Tue Jan 25 00:32:04 EST 2000 new prompt!
  • 57. Programming Text editors emacs, vi Can also use any PC editor if you can get at the files from your PC. Compilers – gcc. Debuggers: gdb xxgdb