bash# more /etc/init.d/local_fs
8.4.3. Use ps to show running processes
Display processes for the user currently logged in.
bash# ps
Display all available information about all running processes.
bash# ps −ef
8.4.4. Run a simple sed script
Use sed to display an alternate version of /etc/passwd.
bash# sed −e "s/Legacy/Old School/" /etc/passwd
Verify that sed did not make the changes permanent.
bash# cat /etc/passwd
8.4.5. Test the "ed" editor
Use ed to change properties on the "daemon" user.
bash# ed −p*
ed* r /etc/passwd
ed* %p
ed* /daemon/s/Legacy/Old School/
ed* %p
ed* w
ed* q
Verify that the changes are permanent (at least until the system is restarted.)
bash# cat /etc/passwd
8.4.6. System shutdown
Bring the system down gracefully with the shutdown command.
Pocket Linux Guide
Chapter 8. Filling in the Gaps 46