If you can see this check that

next section prev section up prev page next page

Essential Admin


Essential Unix Administration

User:
Password:

We look at some of the commands that the User Administrator needs. In this tutorial you will encounter a number of Linux commands that you may not have seen before, use the man command on your system to find out more about any Linux command that you are unsure of.

Question 1: Device Numbers

What is the major device number for /dev/dsp? Hint: use ls to examine devices in /dev/, and the size field contains the major and minor device numbers.

Enter a number:

Tests - not attempted
Device number UNTESTED

Question 2: Device name

What is the name of the kernel device which looks after /dev/dsp? Hint: Find the device number as in q1, then use /proc/devices to match the device number to the kernel module.

Enter a string:

Tests - not attempted
kernel device UNTESTED

Question 3: process id

What is the process id of syslogd? Hint: remember the 'ps aux' command?

Enter a number:

Tests - not attempted
process id of syslogd UNTESTED

Question 4: kill

The syslogd is actually two services, syslogd and klogd. Kill syslogd using the kill command, leaving klogd running.

Tests - not attempted
kill syslogd UNTESTED

Question 5: restart

Restart the syslogd services. To do this you first need to stop syslogd in init.d, and then start it again. If you do not stop it first it will not start up properly. Hint: scripts in /etc/init.d allow the starting and stopping of services. To find out the status of syslog enter '/etc/init.d/syslog status'. To find out the command syntax for the syslog script run it again without the status option.

Tests - not attempted
restart syslogd UNTESTED

Question 6: Start a service

Start the mysql service. Hint: Look in /etc/init.d to find the script that controls the mysql service.

Tests - not attempted
Start a service UNTESTED

Question 7: user

What user does the mysql service run as? Hint: 'ps aux' gives info about which user a process runs as.

Enter the user:

Tests - not attempted
user UNTESTED

Question 8: Swap space

Somewhere in the /proc filesystem there is a file which tells you how much swap space has been allocated to the computer. Find that file and then find out how big in bytes the swap space is. Hint: the information that you require is located within the /proc directory.

Enter a number:

Tests - not attempted
Swap space UNTESTED

Question 9: run level

What run levels does sshd run at (specified as a list like 139 for runlevels 1, 3, and 9). Hint: Try the chkconfig command.

Enter a number:

Tests - not attempted
run levels UNTESTED

Question 10: IRQ

What is the IRQ number assigned to the hardware controlling eth0? (Hint - look at the manual pages for proc).

Enter a number:

Tests - not attempted
IRQ UNTESTED


Tutlinks: intro1 intro2 wildcard permission pipe vi essential admin net fwall DNS diag Apache1 Apache2 MySQL1 MySQL2
Useful: Quiz Forums
Site Links:XMLZoo ActiveSQL ProgZoo SQLZoo