UNIX/LINUX SHELLS. “A Unix shell is a command-line interpreter or shell that provides a...
-
Upload
erin-phelps -
Category
Documents
-
view
265 -
download
1
Transcript of UNIX/LINUX SHELLS. “A Unix shell is a command-line interpreter or shell that provides a...
![Page 1: UNIX/LINUX SHELLS. “A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and.](https://reader036.fdocuments.net/reader036/viewer/2022062408/56649efb5503460f94c0e4eb/html5/thumbnails/1.jpg)
UNIX/LINUX SHELLS
![Page 2: UNIX/LINUX SHELLS. “A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and.](https://reader036.fdocuments.net/reader036/viewer/2022062408/56649efb5503460f94c0e4eb/html5/thumbnails/2.jpg)
“A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and for Unix-like systems.”
“Users direct the operation of the computer by entering commands as text for a command line interpreter to execute or by creating text scripts of one or more such commands.”
from wikipedia
SHELLS
![Page 3: UNIX/LINUX SHELLS. “A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and.](https://reader036.fdocuments.net/reader036/viewer/2022062408/56649efb5503460f94c0e4eb/html5/thumbnails/3.jpg)
most popular: sh
written by (Stephen) Bourne shell, 1977 csh
written Bill Joy bash
Bourne Again shell (Unix, Linux, Mac OS)
others: ash, dash, es, fish, ksh, mksh, psh, rc, scsh, tcsh, zoidberg, zsh
SHELLS
![Page 4: UNIX/LINUX SHELLS. “A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and.](https://reader036.fdocuments.net/reader036/viewer/2022062408/56649efb5503460f94c0e4eb/html5/thumbnails/4.jpg)
WHICH SHELL IS MY DEFAULT SHELL?
![Page 5: UNIX/LINUX SHELLS. “A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and.](https://reader036.fdocuments.net/reader036/viewer/2022062408/56649efb5503460f94c0e4eb/html5/thumbnails/5.jpg)
When you log in, the shell will load your configuration file (if present).
These files start with a period (.) and should be located in your home directory, (~).
These files are not listed by ls by default. (They are “invisible.”) To have ls list them, use the –a option.
Use .cshrc for csh; use .bashrc for bash.
CONFIGURATION FILES
![Page 6: UNIX/LINUX SHELLS. “A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and.](https://reader036.fdocuments.net/reader036/viewer/2022062408/56649efb5503460f94c0e4eb/html5/thumbnails/6.jpg)
EXAMPLE .CSHRC
![Page 7: UNIX/LINUX SHELLS. “A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and.](https://reader036.fdocuments.net/reader036/viewer/2022062408/56649efb5503460f94c0e4eb/html5/thumbnails/7.jpg)
EXAMPLE .BASHRC
![Page 8: UNIX/LINUX SHELLS. “A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and.](https://reader036.fdocuments.net/reader036/viewer/2022062408/56649efb5503460f94c0e4eb/html5/thumbnails/8.jpg)
setenv (csh) vs. export (bash)
setenv PATH /home/ggrevera/mpich2-install/bin:$PATH
export PATH=/usr/ccs/bin:$PATH
alias (csh) vs. alias (bash)
alias emacs /home/ggrevera/emacs-23.4/src/emacs
alias emacs=/home/ggrevera/emacs-23.4/src/emacs
DIFFERENCES BETWEEN CSH AND BASH
![Page 9: UNIX/LINUX SHELLS. “A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and.](https://reader036.fdocuments.net/reader036/viewer/2022062408/56649efb5503460f94c0e4eb/html5/thumbnails/9.jpg)
To run a shell, simply type its name. bash
To exit a shell, simply enter the exit command. exit (When you exit your last shell, you will log out of the system.)
HOW DOES ONE RUN/EXIT A SHELL?