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/loop0? 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 kernel name (names and major numbers are held in /proc/device) for the device /dev/ram0? Hint: Find the major device number as in q1, then use /proc/devices to match the device number to the kernel module. It is in 2 groups, so make sure you know if this is a block or character device.

Enter a string:

Tests - not attempted
kernel device UNTESTED

Question 3: process id

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

Enter a number:

Tests - not attempted
process id of rsyslogd UNTESTED

Question 4: kill

Kill rsyslogd using the kill command.

Tests - not attempted
kill syslogd UNTESTED

Question 5: restart

Restart the rsyslogd services. In a linux system controlled by systemd, you need to use "service" or "systemctl". "service" the easiest.

Try the "service" command with "service rsyslog status".

To start the service again, work out the command to restart the service rather than get its status.

Tests - not attempted
restart rsyslogd UNTESTED

Question 6: Control a service

Stop the mysqld service using "service".

Tests - not attempted
Stop a service UNTESTED

Question 7: Start a service

Start the mysqld service using "service".

Tests - not attempted
Start a service UNTESTED

Question 8: user

What user does the mysqld service run as? Hint: Normally 'ps aux' would be fine, but the mysqld command name may be too long to see, so try 'ps auxw'. Ignore mysqld_safe.

Enter the user:

Tests - not attempted
user UNTESTED

Question 9: 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 10: 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 with the --help option, and look for the list option.

Enter a number:

Tests - not attempted
run levels UNTESTED


Linux tutorials: intro1 intro2 wildcard permission pipe vi essential admin net fwall DNS diag Apache1 Apache2 MySQL1 MySQL2
Caine 3.0: Essentials | Basic | Search | SysIntro | 5a | 5b | 5c | 6 | 7 | 8a | 8b | WebBrowserA | WebBrowserB | Registry
Useful: Quiz | Forums | Privacy Policy | Terms and Conditions
Site Links:XMLZoo ActiveSQL ProgZoo SQLZoo

Copyright @ 2004-2012 Gordon Russell. All rights reserved.