LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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



Reply
 
Search this Thread
Old 07-16-2008, 06:15 AM   #1
chidipudi
LQ Newbie
 
Registered: Jul 2008
Posts: 1

Rep: Reputation: 0
Smile 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.
 
Old 07-16-2008, 06:21 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,139
Blog Entries: 52

Rep: Reputation: Disabled
You can find all the answers to your homework questions by reading the man pages, it's easy.
 
Old 07-16-2008, 06:21 AM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Homework: http://catb.org/~esr/faqs/smart-questions.html. See also LQ rules
 
Old 07-16-2008, 07:23 AM   #4
bashyow
Member
 
Registered: Jun 2008
Location: uk
Distribution: Slackware 12.1, AND IM LOVIN EVERY MINUTE OF IT, JERRY! :D
Posts: 122

Rep: Reputation: 15
chidipudi is so lazy he hasnt even bothered to disguise the fact he wants us to do HIS homework.

Quote:
Originally Posted by brianL View Post
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.
 
Old 07-16-2008, 08:00 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
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.
 
Old 07-16-2008, 01:08 PM   #6
resetreset
Senior Member
 
Registered: Mar 2008
Location: India
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,320

Rep: Reputation: 62
you need to the ANSWER to the question "Change to the home directory of another user directly, using cd ~username."? my god, some people....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't post answers to questions youcantoo_linuxguy LQ Suggestions & Feedback 3 10-16-2006 08:30 PM
Anyone know the answers to these command-line questions? PDASquare Linux - General 11 08-28-2005 09:37 AM
Anyone know the answers to these command-line questions? PDASquare Linux - Software 2 08-27-2005 05:52 PM
how to get answers in this form for my questions abd_bela Linux - General 1 08-11-2003 07:11 AM
well... some questions looking for answers murshed Linux - General 13 01-16-2003 09:42 AM


All times are GMT -5. The time now is 01:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration