Installing Cygwin - Shell Commands On Windows! 10-05-2013, 04:19 PM
#1
I decided I wanted to install CygWin so I could get used to the commands before installing linux again, so I thought I could make it into a tutorial incase any of you were interested in doing the same.
Okay, so first we are going to download the "setup.exe" from the offcial CygWin webpage
Once you have run the installer select "Install from Internet"
![[Image: v3wdicu.png]](http://i.imgur.com/v3wdicu.png)
Now click next and choose the installation path, I'm leaving it as default.
![[Image: 72u.png]](http://img692.imageshack.us/img692/5093/72u.png)
Now we are going to pick a folder to store the downloaded files in, we can delete this when we are done so for now just name it "Temp"
![[Image: 61im.png]](http://img594.imageshack.us/img594/7078/61im.png)
Now choose "Direct Connection"
![[Image: a4kw.png]](http://img545.imageshack.us/img545/8086/a4kw.png)
Now choose a mirror to download.
![[Image: aIzZV9p.png]](http://i.imgur.com/aIzZV9p.png)
Click next.
Here's a song while you are waiting.
Now for the Packages screen just click next, if you need anything extra you can add it later.
![[Image: ZZr7oub.png]](http://i.imgur.com/ZZr7oub.png)
Select the "Select required packages" box and click next.
![[Image: f7D7WS7.png]](http://i.imgur.com/f7D7WS7.png)
Now you wait for it to download.
Feel free to play a VN while you wait.
http://www.katawa-shoujo.com/
Once the install is finished click the desktop icon which will launch the prompt.
Now once you have launched it you will see the prompt.
The text inside the box will only show up the first time.
![[Image: 8QAqLVN.png]](http://i.imgur.com/8QAqLVN.png)
Now you have installed CygWin successfully!
Here are a few things you can do to see it working.
Usful links
http://kb.iu.edu/data/abnd.html
http://www.my-guides.net/en/guides/linux...x-commands
Okay, so first we are going to download the "setup.exe" from the offcial CygWin webpage
Once you have run the installer select "Install from Internet"
Spoiler:
![[Image: v3wdicu.png]](http://i.imgur.com/v3wdicu.png)
Now click next and choose the installation path, I'm leaving it as default.
Spoiler:
![[Image: 72u.png]](http://img692.imageshack.us/img692/5093/72u.png)
Now we are going to pick a folder to store the downloaded files in, we can delete this when we are done so for now just name it "Temp"
Spoiler:
![[Image: 61im.png]](http://img594.imageshack.us/img594/7078/61im.png)
Now choose "Direct Connection"
Spoiler:
![[Image: a4kw.png]](http://img545.imageshack.us/img545/8086/a4kw.png)
Now choose a mirror to download.
Spoiler:
![[Image: aIzZV9p.png]](http://i.imgur.com/aIzZV9p.png)
Click next.
Here's a song while you are waiting.
Now for the Packages screen just click next, if you need anything extra you can add it later.
Spoiler:
![[Image: ZZr7oub.png]](http://i.imgur.com/ZZr7oub.png)
Select the "Select required packages" box and click next.
Spoiler:
![[Image: f7D7WS7.png]](http://i.imgur.com/f7D7WS7.png)
Now you wait for it to download.
Feel free to play a VN while you wait.
http://www.katawa-shoujo.com/
Once the install is finished click the desktop icon which will launch the prompt.
Now once you have launched it you will see the prompt.
The text inside the box will only show up the first time.
Spoiler:
![[Image: 8QAqLVN.png]](http://i.imgur.com/8QAqLVN.png)
Now you have installed CygWin successfully!
Here are a few things you can do to see it working.
Spoiler:
Type "pwd" (Print working directory) to see where you are.
As you can see it prints the directory you're currently in.
The directory path is
Obviously replace my name with the name of your user account.
Listing files.
Instead of using "dir" like you would in the windows command prompt we are going to use
(List)
and it will display the files in your current directory.
I have made a random file for the tutorial. ($ touch sinister.ly)
So now when you do the list command you will see that file.
Deleting files.
So currently we have a file called "Sinister.ly" What if we want to remove the file?
We use the remove command.
So you would do the following.
And it will delete that file.
If you want to delete a folder you will need to use rm - rf (recursive force)
If there were spaces in the folder name you would add quotes, like so.
Reading files.
If you want to read a file you will use "cat"
For example we have a file called SL.txt
If we do
It will print the text inside of the file.
Changing directories.
If you want to switch to another folder we will use "cd" (change directory?)
If you do "ls" again you will see the files in that directory.
To go back simply do "cd"
Quote:Trey@Gibson ~
$ pwd
/home/Trey
As you can see it prints the directory you're currently in.
The directory path is
Code:
C:/cygwin64/home/TreyListing files.
Instead of using "dir" like you would in the windows command prompt we are going to use
Code:
lsand it will display the files in your current directory.
I have made a random file for the tutorial. ($ touch sinister.ly)
So now when you do the list command you will see that file.
Quote:Trey@Gibson ~
$ ls
sinister.ly
Deleting files.
So currently we have a file called "Sinister.ly" What if we want to remove the file?
We use the remove command.
Code:
rmSo you would do the following.
Code:
rm filename.extensionAnd it will delete that file.
If you want to delete a folder you will need to use rm - rf (recursive force)
Code:
rm -rf foldernameIf there were spaces in the folder name you would add quotes, like so.
Code:
rm -rf "folder name"Reading files.
If you want to read a file you will use "cat"
For example we have a file called SL.txt
If we do
Code:
cat SL.txtIt will print the text inside of the file.
Quote:Trey@Gibson ~
$ cat SL.txt
Nefarious http://sinister.ly
Changing directories.
If you want to switch to another folder we will use "cd" (change directory?)
Code:
cd lolQuote:$ cd lol
Trey@Gibson ~/lol
If you do "ls" again you will see the files in that directory.
Quote:Trey@Gibson ~/lol
$ ls
It works!.txt
To go back simply do "cd"
Usful links
http://kb.iu.edu/data/abnd.html
http://www.my-guides.net/en/guides/linux...x-commands



![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)

















![[Image: tenor.gif]](https://media.tenor.com/images/40e171e6954998e4c640c1a106cd238c/tenor.gif)