Wednesday, June 15, 2011

Basic Unix commands

In windows create a folder called Downloads ( e.g : C:\Downloads)
Open a cygwin window and cd to this folder. ( write down what was the
command


>echo "hello world " > a.dat ( tell me what happened , and what is this
command )
>echo "hello world" >> a.dat ( tell me what happened )
- How do you copy the file a.dat to b.dat ( which command did you use )
- How do you delete the file b.dat ( which command did you
use )
- cd to root directory ? ( list the command here , how did you go to the
root directory ?)
- type " ls " ( list what happens , what are the files it showed up ?)
- cd to the Downloads folder you created above ?
- cd to the root again ?
- type in cd - ( cd dash ) what happens ? where does it go ?
- Create a directory called "src", and "dst" in the Downloads folder
( what was the command )
- cd to src directory and can you see the file contents ?


Go to windows explorer and see that the files are present.

No comments:

Post a Comment