LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   URGENT - Help me (https://www.linuxquestions.org/questions/linux-newbie-8/urgent-help-me-593664/)

ilircelaj 10-22-2007 08:55 AM

URGENT - Help me
 
Please can you give an asnwer to these questions.
I've never worked on linux before so I find it hard to understand it.
Please help me!!!

1.Joe's current public_html directory currently only grants him and only him full rights.
What command should be issued to grant his domain and the world read and execute rights, but not write privileges?

2.After Joe has switched to public_html, Joe wants to get a listing of the directory's contents. Joe wants not only to see the contents, but would like to show all file detail (including permissions) and would like to show the directory listing page-by-page (just in case the listing can't fit on one page).
What command would Joe type?

3. The object "index.html" is a file in the public_html/personal/ directory.
Which command would Joe issue to give the default permissions for that file?

4.Joe now wants to make a copy of the file blue_stone.jpg from the public_html/academic/images directory to the public_html/personal/genealogy/images directory. Also, Joe wants to name the copy lt_blue_stone.jpg.
How can both of these tasks be accomplished using a single command?

5.Joe graduated and now wants to delete his public_html/academic directory. To do this, he must first be sure that all of the sub-directories and public_html/academic itself are cleared of any remaining files.
In order, which commands would Joe use to finally get rid of
public_html/academic and be sure that all files in it and each sub-directory are deleted first? Assume that all child directories of public_html/academic have no sub-directories of their own.



weibullguy 10-22-2007 09:10 AM

Looks suspiciously like homework. You did read the LQ Rules when you registered, didn't you?
Quote:

Originally Posted by LQ Rules
Do not expect LQ members to do your homework - you will learn much more by doing it yourself.


pixellany 10-22-2007 09:13 AM

this is the worst possible way to ask for help on homework---cut and paste from the assignment sheet. You show no evidence of even trying.
If you have "never worked on Linux", why would someone be giving you this assignment????

b0uncer 10-22-2007 09:30 AM

Two advices on how to start solving those:
1) All commands (that I can think of) are documented on Linux, somehow. Most of them are documented in 'man' or 'info' pages. Those reside on a Linux machine usually, but are accessible in the web too. If you want a task done, you'll first search (in the web for example, if you're too lazy to read a book :) heh) for a command that sounds like it does what you want, and then read it's documentation to get a grasp of how it works. So, for example about permissions changement you would do a search for "Linux change permissions", get a lot of pages that talk about a command called 'chmod', and then you'd find out how that command works; for example by searching for 'man chmod' (manual page for 'chmod'). After reading the manual page you'll maybe want to test it, so get your hands on a Linux installation and see how it works. Or just search for an example if you like.

2) If you have no idea how to proceed, ask your teacher/tutor. That person is the one who is your first guide. If that won't help, you can ask here too, but don't expect direct answers; rather try to solve the problem, face a troublematic situation, present it here along with information on how you tried to solve it (and what caused a failure), and then wait for advices.

If you don't have a Linux machine, your teacher/tutor can't provide you with an access to one, you aren't going to buy or loan any books about Linux, you're too lazy to do a web search for documents and examples and just don't think it's worth it spending some time with your homework...then I guess you're not willing to get the course done from which you got this homework. If you want to pass the course, it means you need to do your homework to understand something about the subject, and it means you're going to do it yourself. Others (like we) can help you back to your boat if you happen to fall from it, but don't expect us to drag it to the harbour for you.

XavierP 10-22-2007 09:54 AM

Quite apart from the responses above, you have put this in the wrong forum. I have moved it to Linux-Newbie.

Please note - we do not answer your homework questions for you. We can provide links to documents, but as most of us have been through school we will not reattend to help you out!

d1g1taltv 10-22-2007 09:59 AM

Lazy A$$...


All times are GMT -5. The time now is 07:01 PM.