EasyManuals Logo

Linux Pocket Linux Guide User Manual

Default Icon
67 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #52 background imageLoading...
Page #52 background image
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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Linux Pocket Linux Guide and is the answer not in the manual?

Linux Pocket Linux Guide Specifications

General IconGeneral
BrandLinux
ModelPocket Linux Guide
CategorySoftware
LanguageEnglish