Содержание
- 2. UNIX Overview Why UNIX? Control Commands often provide complete access to the system and its devices
- 3. UNIX: The Command Line Accessing UNIX through a terminal telnet [hostname] [port] The omnipresent failsafe. Nowadays,
- 4. UNIX: Accessing Documentation Commands are generally documented using the command man. man pages are subdivided into
- 5. UNIX: Accessing Documentation A few commands (such as diff, gcc, awk) are doccumented using info. info
- 6. UNIX terminal management: screen Help CTRL-A ? Copy/Scrollback CTRL-A [ Paste CTRLA ] Lock CTRL-A x
- 7. UNIX: Getting around the filesystems UNIX files are organized just like they are with PC’s and
- 8. UNIX: Getting Around Commands to navigate the directories: pwd ls ls file; ls directory ; ;
- 9. UNIX: More Standard Commands echo print out a string echo “$HOME is where I want to
- 10. UNIX command line tricks Shell “glob” # mkdir /tmp/moved # mv * /tmp/moved # cp /tmp/moved/*
- 11. UNIX: The SHells The “Shell” is simply another program which provides a basic human-OS interface. Shells
- 12. Unix: SH basics Modifying environment variables sh: PAGER=/usr/bin/less; export PAGER bash: export PAGER=/usr/bin/less tcsh: setenv PAGER
- 13. UNIX: Bourne SHell script syntax The first line of a sh script must start as follows:
- 14. Unix Pipelines: Pipes are smokin’! Pipes take the output of the first program and feed that
- 15. Unix redirection: Lesser and Greater >&filename redirects the standard output and error to the file called
- 16. Unix Shell Scripting: Conditional Execution program1 && program2 Program 2 will execute if and only if
- 17. UNIX commands for programmers man –k Search man pages by topic time How long your program
- 18. Unix Shell scripting: foreach loops These are useful when you want to run the same program
- 19. Unix job control Start a background process: program1 & program1 Hit CTRL-Z bg Where did it
- 20. Regular Expressions Powerful language for specifying strings of text to be searched and/or manipulated. Used by
- 21. Regular Expressions: Summary Fundamentals: Match the specified character unless it is a ... . Match any
- 23. Скачать презентацию