Welcome to Dream.In.Code
Getting Help is Easy!

Join 118,883 Programmers for FREE! Ask your question and get quick answers from experts. There are 2,034 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



operating systems

2 Pages V  1 2 >  
Reply to this topicStart new topic

operating systems

aamir_mustafa2007@msn.com
post 27 Apr, 2008 - 12:23 AM
Post #1


New D.I.C Head

*
Joined: 3 Jul, 2007
Posts: 18


My Contributions


1- Describe each of the following commands: (16 marks)

1. ls -al
2. mkdir -p /home/munir/courses/cs604
3. rm –rf directory1 directory2
4. pwd
5. cp –ir /home/user1/directory1 /home/user2/directory2
6. mv *.c ./cfiles
7. ls –l > list
8. ps fax | less
User is offlineProfile CardPM

Go to the top of the page


no2pencil
post 27 Apr, 2008 - 12:26 AM
Post #2


Wet D.I.C.

Group Icon
Joined: 10 May, 2007
Posts: 5,525



Thanked 36 times

Dream Kudos: 2350

Expert In: Goofing Off

My Contributions


If this doesn't have what you are looking for, you can find the answers to all of those in about 5 minutes with Google.
User is online!Profile CardPM

Go to the top of the page

mikeblas
post 29 Apr, 2008 - 10:24 PM
Post #3


D.I.C Head

**
Joined: 8 Feb, 2008
Posts: 155



Thanked 1 times
My Contributions


You're just posting questions from your homework, or your test here. Wouldn't it be better to ask your professor for help instead of us?
User is offlineProfile CardPM

Go to the top of the page

KYA
post 29 Apr, 2008 - 10:40 PM
Post #4


#include <nerd.h>

Group Icon
Joined: 14 Sep, 2007
Posts: 3,130



Thanked 24 times

Dream Kudos: 1150
My Contributions


Wow. This is pretty lazy.
User is offlineProfile CardPM

Go to the top of the page

Kirth
post 30 Jul, 2008 - 08:30 AM
Post #5


New D.I.C Head

*
Joined: 9 Jul, 2008
Posts: 39

The nibbag even included how many marks we can earn biggrin.gif .
User is offlineProfile CardPM

Go to the top of the page

Kirth
post 30 Jul, 2008 - 08:36 AM
Post #6


New D.I.C Head

*
Joined: 9 Jul, 2008
Posts: 39

1. This indicates that everything gets selected.
2. This makes Windows delete the selected directory.
3. This remotely stops your liver from working!
4. This indicates that you're stupid and got owned!
5. Control Point! Congratulations, 2 more and you win a match of Warsong Gulch!
6. Moves your entire C partition to a single folder!
7. This disabels lisps from your os' language settings.
8. This adds a post-scriptum that the office can't use the fax device that often.
User is offlineProfile CardPM

Go to the top of the page

DeCompile
post 31 Jul, 2008 - 03:57 AM
Post #7


D.I.C Head

**
Joined: 20 Jul, 2008
Posts: 167



Thanked 6 times
My Contributions


Well it's pretty obvious that these are linux commands, and also that it's been long enough the said thread starter would have finished their homework. So for all those who are waiting with baited breath. The answers are as follows:

1. Lists all files, with all attributes. Similar to dir -a with windows.

2. Creates a directory (although the syntax is incorrect)

It should read: mkdir directory /home/........ etc
Where directory is the folder to be created.

3. Removes an entry, the -rf switches means it will also delete any sub-entries too. Although it will only take wildcards and a single entry, not both directory1 directory2

4. pwd is also used with the wrong syntax.
Used correctly it would state: pwd (user) and allow the users password to be changed.

5. Copy command, similar to windows.

6. Move command, also similar to windows.

7. List command yet again, with different syntax. This syntax does not work with all *nix based systems, but it will check the name of the file system entries and list those that have more characters than list

8. ps fax is the equivalent of Task Manager in windows. Using the less syntax shortens it's outputs to very simple information.

I'm pretty sure that's all of them.
User is offlineProfile CardPM

Go to the top of the page

Tom9729
post 31 Jul, 2008 - 01:19 PM
Post #8


Debian guru

Group Icon
Joined: 30 Dec, 2007
Posts: 1,429



Thanked 10 times

Dream Kudos: 325
My Contributions


QUOTE(DeCompile @ 31 Jul, 2008 - 06:57 AM) *

2. Creates a directory (although the syntax is incorrect)

It should read: mkdir directory /home/........ etc
Where directory is the folder to be created.

Nope, it would create the directory cs604, and any directories leading up to it if they don't exist.

QUOTE(DeCompile @ 31 Jul, 2008 - 06:57 AM) *

3. Removes an entry, the -rf switches means it will also delete any sub-entries too. Although it will only take wildcards and a single entry, not both directory1 directory2

'rm' will take as many arguments as you have memory. tongue.gif

QUOTE(DeCompile @ 31 Jul, 2008 - 06:57 AM) *

4. pwd is also used with the wrong syntax.
Used correctly it would state: pwd (user) and allow the users password to be changed.

'pwd' prints the working directory, 'passwd' changes the user's password (and the username is optional).

QUOTE(DeCompile @ 31 Jul, 2008 - 06:57 AM) *

7. List command yet again, with different syntax. This syntax does not work with all *nix based systems, but it will check the name of the file system entries and list those that have more characters than list

Nope, the '>' redirects the output of 'ls -l' to the file named 'list'.

QUOTE(DeCompile @ 31 Jul, 2008 - 06:57 AM) *

8. ps fax is the equivalent of Task Manager in windows. Using the less syntax shortens it's outputs to very simple information.

Kind of. You got the first part right, but what 'ps' does by default is dump a listing of currently running processes to stdout. The pipe redirects it to the 'less' program, which displays enough to fill the screen and lets the user scroll down.

This post has been edited by Tom9729: 31 Jul, 2008 - 01:23 PM
User is offlineProfile CardPM

Go to the top of the page

ChazZeromus
post 3 Aug, 2008 - 12:29 PM
Post #9


New D.I.C Head

*
Joined: 2 Aug, 2008
Posts: 35



Thanked 1 times
My Contributions


dude, just look at man page for each command tongue.gif
User is offlineProfile CardPM

Go to the top of the page

gabehabe
post 3 Aug, 2008 - 12:39 PM
Post #10


T3H R0XX0R!

Group Icon
Joined: 6 Feb, 2008
Posts: 3,602



Thanked 73 times

Dream Kudos: 2400

Expert In: (X)HTML, CSS, Batch Scripting, C, C++

My Contributions


I W4NTZ TEH M4RKZZZZZZZ!
User is online!Profile CardPM

Go to the top of the page

DeCompile
post 3 Aug, 2008 - 03:16 PM
Post #11


D.I.C Head

**
Joined: 20 Jul, 2008
Posts: 167



Thanked 6 times
My Contributions


Wow, that really shows my need to refresh my *nix use.
User is offlineProfile CardPM

Go to the top of the page

mssbrightside25
post 6 Aug, 2008 - 10:38 AM
Post #12


New D.I.C Head

*
Joined: 16 Jun, 2008
Posts: 3

@ Kirth: users come here for help...not useless/rude/stupid comments...grow up. dry.gif
User is offlineProfile CardPM

Go to the top of the page

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 10/13/08 03:04AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month