Thursday, April 9, 2009
linux login/logout profiles
Login Scripts
Behind the scenes, when you login, the following shell scripts are executed. They are used to set environment variables and system settings.
/etc/profile
- This is the first script that is executed.
- This script is used to set global parameters that are common to all users.
/home/
/.profile
- This is the next script that is normally executed.
- Most likely the contents of this file will be the same for all users.
- It can be changed to set unique parameters for each user.
/home/
/.bashrc
- This is the next script that is run and/or each time you start a new shell.
Sed Command
Keeping lines containing certain words with the sed command
sed -i -e '/firefox/!d' TheEntireIntarwebs.html
sed // The program
-i // tells sed to write the results back to the source file
-e // tells sed to interpret the next argument as a regular
sed -i -e '/firefox/!d' TheEntireIntarwebs.html
sed // The program
-i // tells sed to write the results back to the source file
-e // tells sed to interpret the next argument as a regular
Subscribe to:
Posts (Atom)