Display kernel messages by piping the output of dmesg to more.
bash#
dmesg | more
Examine the local_fs
script by using
more with a command-line argument.
bash#
more /etc/init.d/local_fs
Display processes for the user currently logged in.
bash#
ps
Display all available information about all running processes.
bash#
ps -ef
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
Use ed to change properties on the "daemon" user.
bash#
ed -p*ed*
r /etc/passwded*
%ped*
/daemon/s/Legacy/Old School/ed*
%ped*
wed*
q
Verify that the changes are permanent (at least until the system is restarted.)
bash#
cat /etc/passwd