uli101 Week10

uli101 Week10 - ULI101 Week 10 Lesson Overview Shell...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
ULI101 Week 10
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Lesson Overview Shell Start-up and Configuration Files Shell History Alias Statement Shell Variables Introduction to Shell Scripting Positional Parameters echo and read Commands if and test statements for loop
Background image of page 2
Shell Start-up and Configuration Files Shell Start-up/Configuration files are settings that are applied every time a shell is created Start-up files are sequences of shell commands (scripts) They also apply when users log in, as it creates a shell There is a single system-wide configuration file that belongs to the root user - /etc/profile User-specific configuration files that belong to the user are hidden files found in the user’s home directory .bash_profile .bashrc .bash_logout Executed when you log out
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
/etc/profile This file can only be modified by the root user Affects the environment of all users, regardless of their default shell Bash users can change their environment by modifying the .bash_profile or the .bashrc files Different shells have different configuration files Other configuration files such as .profile exist – read comments in your .bash_rc file to find out more
Background image of page 4
.bashrc and .bash_profile Located in the user’s home directory These files are executed every time a user logs in or creates a new shell Things vary depending whether the shell is interactive or not By modifying either one of these files, each user can change his individual working environment They can be used for the following: Setting the prompt and screen display Creating local variables Creating temporary Linux commands (aliases) Mapping new keys on the keyboard
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Shell History Many shells keep a history of recently executed command lines in a file This history is used by users to save time, when executing same or similar commands over and over Bash uses the up/down arrow keys Use the Ctrl+r to search by keyword Bash stores it’s history in the .bash_history file
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/14/2011 for the course CNS 101 taught by Professor Murraysaul during the Fall '11 term at Seneca.

Page1 / 25

uli101 Week10 - ULI101 Week 10 Lesson Overview Shell...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online