3.6. Exercises
Just login with your common user ID.
3.6.1. Partitions
- On which partition is your home directory?
- How many partitions are on your system?
- What is the total size of your Linux installation?
3.6.2. Paths
- Display your search path.
- Export a senseless path by entering, for instance, export
PATH=blah and try listing directory content.
- What is the path to your home directory? How would another user reach your home directory starting from his own home directory, using a relative path?
- Go to the
tmp directory in /var.
- Now go to
share in /usr using only one command. Change to doc. What is your present working directory?
3.6.3. Tour of the system
- Change to the
/proc directory.
- What CPU(s) is the system running on?
- How much RAM does it currently use?
- How much swap space do you have?
- What drivers are loaded? (Hint: modules are sometimes called drivers.)
- How many hours has the system been running?
- Which filesystems are known by your system?
- Change to
/etc/rc.d | /etc/init.d | /etc/runlevels and choose the file or directory appropriate for your current run level.
- What services should be running in this level?
- Which services run in graphical mode that don’t run in text mode?
- Change to
/etc
- question removed
- question removed
- Are there any issues or messages of the day?
- How many users are defined on your system? Don’t count them, let the computer do it for you!
- How many groups?
- Where is the time zone information kept?
- Are the HOWTOs installed on your system?
- Change to
/usr/share/doc.
- Name three programs that come with the GNU coreutils package.
- Which version of bash is installed on this system?
3.6.4. Manipulating files
- Create a new directory in your home directory.
- Can you move this directory to the same level as your home directory?
- Copy all XPM files from
/usr/share/pixmaps to the new directory. What does XPM mean?
- List the files in reverse alphabetical order.
- Change to your home directory. Create a new directory and copy all the files of the
/etc directory into it. Make sure that you also copy the files and directories which are in the subdirectories of /etc! (recursive copy)
- Change into the new directory and make a directory for files starting with an upper case character and one for files starting with a lower case character. Move all the files to the appropriate directories. Use as few commands as possible.
- Remove the remaining files.
- Delete the directory and its entire content using a single command.
- Use grep to find out which script starts the Font Server in the graphical run level.
- Where is the sendmail server program?
- Make a symbolic link in your home directory to
/var/tmp. Check that it really works.
- Make another symbolic link in your home directory to this link. Check that it works. Remove the first link and list directory content. What happened to the second link?
3.6.5. File permissions
- Can you change file permissions on
/home?
- What is your standard file creation mode?
- Change ownership of
/etc to your own user and group.
- Change file permissions of
~/.bashrc so that only you and your primary group can read it.
- Issue the command locate
root. Do you notice anything special?
- Make a symbolic link to
/root. Can it be used?
Answer Key
Prev: Summary
Home
Next: Processes
Copyright (c) by the authors.
This section of the wiki is licensed under the terms of the GNU Free Documentation License.
See the LBook-licensing page for details.
Linux® is a registered trademark of Linus Torvalds.
course/book/sect_03_06.txt · Last modified: 2008/02/13 10:41 by 125.31.48.159 (day9981)
Welcome to LinuxBasics.org - The online community that helps people to get Linux installed and running.
During this tour, we will guide you through our website, which has many facets which wait to be explored
The biggest project we are running is our Linux course, based on the LBook.
The book is stored in wiki-format, which enables us to update and correct it as we go.
Discussion for the course is on our Forum
Our mailing-list is for any Linux-related question.
The questions and answers from the list are stored in the list's archives in order to help others with the same problems.
Every weekend, we meet to chat in IRC. These meetings are NOT mandatory, but are a nice chance to get to know each other better.
IRC is also a great tool to solve many problems, since it is very quick and easy to ask for more details if you need them.
The tutorials are one of the oldest sections on the LBo-website.
Here you find explanations on how to do specific tasks in Linux. Many of the tutorials were created after a certain problem
has been discussed (and usually solved :) on the mailing-list.
The tutorials are categorized in
In the links section, you find outbound links to other valuable resources.
One of our later additions to the site. We maintain a mirror of the Linux Documentation Project. This is our contribution to the "home of the HOWTOs"
Another later addition is the LBlog which focuses on how to do stuff on the Linux Desktop. It begins with the basics on installing Ubuntu.
Using the integrated site-search, you can search the tutorials, the LBook and all other wiki-pages
Simply type the search term into the box in the upper-right corner of our webpages
As a community, we depend on your feedback and collaboration. So, if you have something to share with others, please contact us. If you have a suggestion for a topic you would like to see covered here, please add it on the Wishlist.
There are many ways to contribute: You can answer questions on the mailing-list, you can write a complete tutorial or just a step-by-step documentation on how you completed a specific task using linux. Ask questions if the information on this site is not clear, tell us if we got something wrong, spell-check our writings, whatever.
We are looking forward to meeting you at LinuxBasics.org
Anita, Jisao, Sam and Stefan