1 / 37

UNIX and Linix Commands and Utilities

10. UNIX and Linix Commands and Utilities. UNIX and Linux. UNIX Bell Labs, 1970s Ken Thompson and Dennis Ritchie Linux University of Helsinki Linus Torvald Kernel 1.0 released in 1994. Fig. 10.1: UNIX commands are processed by a shell. Bourne shell C shell Bourne Again shell.

Télécharger la présentation

UNIX and Linix Commands and Utilities

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 10 UNIX and Linix Commands and Utilities

  2. UNIX and Linux • UNIX • Bell Labs, 1970s • Ken Thompson and Dennis Ritchie • Linux • University of Helsinki • Linus Torvald • Kernel 1.0 released in 1994

  3. Fig. 10.1: UNIX commands are processed by a shell. • Bourne shell • C shell • Bourne Again shell

  4. Fig. 10.2: A UNIX command.

  5. Fig. 10.3: Log on sequence.

  6. Fig. 10.4: Use the passwd utility to change your password.

  7. Fig. 10.5: The date utility.

  8. Fig. 10.6: who displays the names of users currently logged on the system.

  9. Fig. 10.7: UNIX file names. The UNIX file system allows you to save and retrieve files by name.

  10. Fig. 10.7, continued

  11. Fig. 10.8: UNIX uses a hierarchical directory structure.

  12. Directories • Root directory • The system’s lowest level directory • Home directory • The user’s initial directory • Working directory • The user’s current base directory

  13. Fig. 10.9: You must specify a complete pathname to uniquely identify a file.

  14. Fig. 10.10: The pwd (print working directory) command.

  15. Fig. 10.11: The list directory (ls) command.

  16. Fig. 10.12: The files in the referenced directory are listed in alphabetical order.

  17. Fig. 10.13: The ls command.

  18. Fig. 10.14: File type and access permissions.

  19. Fig. 10.15: The make directory (mkdir) utility.

  20. Fig. 10.16: A directory list.

  21. Fig. 10.17: The cd (change directory) command.

  22. Fig. 10.18: The contents of the root directory and of directory users.

  23. Fig. 10.19: The visual editor (vi).

  24. Fig. 10.20: The message displayed by the visual editor after it has created a file.

  25. Fig. 10.21: Use the concatenate (cat) utility to display the contents of one or more files.

  26. Fig. 10.22: Following a catcommand, the contents of all the files are displayed one after another.

  27. Fig. 10.23: The copy (cp) utility.

  28. Fig. 10.24: When a file is copied, its name appears in the new directory.

  29. Fig. 10.25: The same file can be referenced in more than one directory by creating a link.

  30. Wildcard Characters • ? • a single character • * • one or more (usually more) characters

  31. Fig. 10.26: Redirection operators.

  32. Pipes, Filters, and Redirection • Redirection: dynamically changing the default input or output device • Filter: a command that reads the standard input device, filters (or modifies) the data, and writes to the standard output device. • Pipe: An operator that causes one command’s standard output to be used as the standard input to another command.

  33. Fig. 10.27: Redirection.

  34. Fig. 10.28: The sort utility.

  35. Fig. 10.29: With pipes, one utility’s standard output becomes another’s standard input.

  36. Fig. 10.30: A KDE snapshot for a file directory.

  37. Other Useful Commands • lpr contents of file to line printer • vi the visual editor • nroff format text • troff prepare output for phototypesetter • eqn set up equation • tbl format tables • spell spell checker

More Related