View Single Post
  #4  
Old October 7th, 2001, 04:34 PM
AdmiralAK's Avatar
AdmiralAK AdmiralAK is offline
Simply Daemonic
 
Join Date: Oct 2000
Location: Classified
Posts: 5,787
Thanks: 0
Thanked 0 Times in 0 Posts
AdmiralAK is on a distinguished road
How do I make a folder ? How do I delete something ?

OK, ready to move one step further ?
cool!

now to make a folder...its quite simple!

We use to mkdir command.
The format is this
mkdir desired_name

so if we want to make a folder called "job" we do this at the prompt:
mkdir job and hit return

Code:
[admiralty:~/pictures] admiral% mkdir job
[admiralty:~/pictures] admiral% ls
job
[admiralty:~/pictures] admiral%
To verify that it was actually made I did an "ls" to see teh contents of that directory. (NOTE: directory and folder are interchangeable terms)

-----

So..now how about deleting a few things ?

We do this with the rm command.

To delete a single file you do this

Code:
[admiralty:~/pictures] admiral% ls
job       text.txt
[admiralty:~/pictures] admiral% rm text.txt
[admiralty:~/pictures] admiral% ls
job
[admiralty:~/pictures] admiral%
Explantation:
I did an LS to see what I had in my folder. I had the folder named "job" and a text file called "text.txt".
I did the rm command followed by the file name I wanted to delete. I hit return.
The I did another LS to verify that I deleted it.


-----
To remove a directory you use the rm command with the flag -r (r stands for recursive but we wont get into that now)

here is what we have then:

Code:
[admiralty:~/pictures] admiral% ls
job
[admiralty:~/pictures] admiral% rm -r job
[admiralty:~/pictures] admiral% ls
[admiralty:~/pictures] admiral%
Explanation:
I did an LS to see what I had in my folder,
I had a folder called "job"
I did the command rm -r with the folder I wanted to delete (rm -r job)
and to check that it was deleted, I did an LS.


And that is how you delete!
__________________
<<------------------------------>>
Seid ihr bereit fuer Club Admiralty ????
Club Admiralty: Http://www.club-admiralty.com
Copyright 1996-present
Bonified Gadget Geek :-)
<<------------------------------>>
Reply With Quote