170 likes | 287 Vues
Explore the functionalities, built-in commands, environment variables, and startup files in Linux shells. Learn about useful aliases, commands, and metacharacters for efficient shell operations.
E N D
Chapter 4 LINUX Shells
Figure 4.1 Shell families and their relative functionalities
Table 4.2Shell Similarities and Disimilarities (continued from previous slide)
Shell Startup Files • Startup files set environment variables and set the initial behavior of the shell • Bash first runs the file /etc/profile • Additional startup files have names that start with “.” which denotes a hidden file
Figure 4.2 An illustration of the write command (continued on next slide)
Figure 4.2 An illustration of the write command (continued from previous slide
Some Useful Commands • Directory commands: pwd, mkdir, rmdir, ls • File display commands: cat, more, less • File printing: lpr • Calendar display: cal • Instant Messaging: write, talk (can be enabled or disabled using mesg) • Email notification: enabled or disabled using biff • Aliasing: create an alias name for long commands (alias, and unalias) • System statistics: uptime, ps
Shell Metacharacters • Metacharacters are characters that have a special meaning to the shell • Metacharacters can be used as regular characters by preceding them with “\”
Table 4.7Shell Metacharacters(continued from previous slide)