Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-16-2008, 06:15 AM
|
#1
|
LQ Newbie
Registered: Jul 2008
Posts: 1
Rep:
|
need some help,i need answers for these questions please..
1. Describe three different ways of setting the permissions on a file or directory to r--r--r--. Create a file and see if this works.
2) Experiment with the options on the ls command. What do the d, i, R and F options do?
3) Continue to explore the filesystem tree using cd, ls, pwd and cat. Look in /bin, /usr/bin, /sbin, /tmp and /boot. What do you see?
4) Change to the home directory of another user directly, using cd ~username.
5) Change back into your home directory.
Main Task
6) Make subdirectories called work and play.
7) Delete the subdirectory called work.
8) Copy the file /etc/passwd into your home directory.
9) Move it into the subdirectory play.
10) What is the difference between listing the contents of directory play with ls -l and ls -L?
11) Create a file called hello.txt that contains the words "hello world". Can you use "cp" using "terminal" as the source file to achieve the same effect?
12) Copy hello.txt to terminal. What happens?
13) How would you create and then delete a file that begins with the symbol #? Try it.
14) How would you create and then delete a file that begins with the symbol -? Try it.
15) Experiment with the options on the ls command. What do the d, i, R and F options do?
16) Modify the permissions on your home directory to make it completely private.
|
|
|
07-16-2008, 06:21 AM
|
#2
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
You can find all the answers to your homework questions by reading the man pages, it's easy.
|
|
|
07-16-2008, 06:21 AM
|
#3
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,418
|
|
|
|
07-16-2008, 07:23 AM
|
#4
|
Member
Registered: Jun 2008
Location: uk
Distribution: Slackware 12.1, AND IM LOVIN EVERY MINUTE OF IT, JERRY! :D
Posts: 122
Rep:
|
chidipudi is so lazy he hasnt even bothered to disguise the fact he wants us to do HIS homework.
Quote:
Originally Posted by brianL
You can find all the answers to your homework questions by reading the man pages, it's easy.
|
i used to avoid a prog/command's man page like it was the plague. im quite fond of them now lol
Last edited by bashyow; 07-16-2008 at 07:24 AM.
|
|
|
07-16-2008, 08:00 AM
|
#5
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
chidipudi;
My experience with this kind of homework question is that we will never hear from you again. If you can still hear US, then at least hear this: Even if someone were to take the bait this time and do your work for you, your approach does not give me much hope that you will succeed in this field---with or without whatever degree or certificate you are pursuing.
If you do respond back, please tell us if you bothered to try any of the exercises you listed.
|
|
|
07-16-2008, 01:08 PM
|
#6
|
Senior Member
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,351
Rep:
|
you need to the ANSWER to the question "Change to the home directory of another user directly, using cd ~username."? my god, some people....
|
|
|
All times are GMT -5. The time now is 04:13 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|