Login Register






DIGIT4L - Installing Cygwin - Shell Commands On Windows! filter_list
Author
Message
DIGIT4L - Installing Cygwin - Shell Commands On Windows! #1
[Image: 5Tp8f.png]
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 in case any of you were interested in doing the same.


Okay, so first we are going to download the "setup.exe" from the official CygWin site


Once you have run the installer select "Install from Internet"
Spoiler:
[Image: v3wdicu.png]



Now click next and choose the installation path, I'm leaving it as default.
Spoiler:
[Image: 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]



Now choose "Direct Connection"
Spoiler:
[Image: a4kw.png]


Now choose a mirror to download.
Spoiler:
[Image: aIzZV9p.png]


Here is a song while you wait.


Now for the Packages screen just click next, if you need anything extra you can add it later.
Spoiler:
[Image: ZZr7oub.png]


Select the "Select required packages" box and click next.
Spoiler:
[Image: 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]



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.
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/Trey

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
Code:
ls
(List)

and it will display the files in your current directory.
I have made a random file for the tutorial. ($ touch file.txt)

So now when you do the list command you will see that file.

Quote:Trey@Gibson ~
$ ls
file.txt

Deleting files.
So currently we have a file called "file.txt" What if we want to remove the file?

We use the remove command.
Code:
rm

So you would do the following.
Quote:rm filename.extension

And it will delete that file.

If you want to delete a folder you will need to use rm - rf (recursive force)

Quote:rm -rf foldername

If there were spaces in the folder name you would add quotes, like so.
Quote:rm -rf "folder name"


Reading files.

If you want to read a file you will use "cat"
For example we have a file called HF.txt
If we do
Code:
cat HF.txt

Quote:Trey@Gibson ~
$ cat HF.txt
Kirito http://historicforums.net



Changing directories.

If you want to switch to another folder we will use "cd" (change directory?)

Code:
cd lol

Quote:$ 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"


Useful links

http://kb.iu.edu/data/abnd.html
http://www.my-guides.net/en/guides/linux...x-commands

Reply

RE: DIGIT4L - Installing Cygwin - Shell Commands On Windows! #2
Nice tutorial man! Personally I rather use an actual Linux box if I wanted to do anything Linux related though. Cygwin is pretty messy in my eyes.

Reply

RE: DIGIT4L - Installing Cygwin - Shell Commands On Windows! #3
Thanks for the tutorial will try it out.
[Image: Shift+Signature.png]

Reply