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!
