Workshop


The Workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowledge into practice.

Quiz

1:

How would you get a listing of all currently running processes on a Linux system?

2:

How would you forcibly kill, without questions or delay, process number 1340?

3:

How would you enable the httpd (web) server for runlevel 4?

4:

How do you list all file systems on the device /dev/hdb, as well as its size?

5:

How do you edit the personal list of periodic tasks?

Answers

A1:

ps ax

or

ps -ef

A2:

kill -KILL 1340

A3:

/sbin/chkconfig --level 4 httpd on

A4:

/sbin/parted /dev/hdb print

A5:

crontab -e

Activities

  1. Get a list of all of the processes currently running on your system using the ps command and the ax arguments.

  2. Use the chkconfig command and the -list option to get a listing of all the services that your Linux system runs at various runlevels.

  3. Use the service command and the restart argument to restart one of the services currently running on your Linux system.

  4. Add a user account called galileo and assign it a password. Log in to the account to verify that it exists. Then log out and back in as root again and delete the account and its home directory.

  5. Use the shutdown command to reboot your system.



    SAMS Teach Yourself Red Hat(r) Fedora(tm) 4 Linux(r) All in One
    Cisco ASA and PIX Firewall Handbook
    ISBN: N/A
    EAN: 2147483647
    Year: 2006
    Pages: 311
    Authors: David Hucaby

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net