![]() |
|
Tutorial Installing Cygwin - Shell Commands On Windows! - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Computers (https://sinister.ly/Forum-Computers) +--- Forum: Software & Programs (https://sinister.ly/Forum-Software-Programs) +--- Thread: Tutorial Installing Cygwin - Shell Commands On Windows! (/Thread-Tutorial-Installing-Cygwin-Shell-Commands-On-Windows) |
Installing Cygwin - Shell Commands On Windows! - Nefarious - 10-05-2013 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" Spoiler:![]() Now click next and choose the installation path, I'm leaving it as default. Spoiler:![]() 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:![]() Now choose "Direct Connection" Spoiler:![]() Now choose a mirror to download. Spoiler:![]() 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:![]() Select the "Select required packages" box and click next. Spoiler:![]() 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:![]() 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 ~ 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 ~ 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 ~ Changing directories. If you want to switch to another folder we will use "cd" (change directory?) Code: cd lolQuote:$ cd lol If you do "ls" again you will see the files in that directory. Quote:Trey@Gibson ~/lol To go back simply do "cd" Usful links http://kb.iu.edu/data/abnd.html http://www.my-guides.net/en/guides/linux/basic-linux-commands RE: Installing Cygwin - UNIX Commands On Windows! - Cyanide and Cynicism - 10-05-2013 Seriously? Why do people say that they're *nix commands, has anyone heard of a fucking shell? RE: Installing Cygwin - UNIX Commands On Windows! - Nefarious - 10-05-2013 (10-05-2013, 05:05 PM)Cyanide and Cynicism Wrote: Seriously? Why do people say that they're *nix commands, has anyone heard of a fucking shell? Last time I called them shell commands I was told I was incorrect. What should it be called? Sorry. RE: Installing Cygwin - UNIX Commands On Windows! - Cyanide and Cynicism - 10-05-2013 (10-05-2013, 05:45 PM)Nefarious Wrote: Last time I called them shell commands I was told I was incorrect. That would be perfectly fine, don't see why anyone would tell you that you were incorrect unless they were morons. RE: Installing Cygwin - Shell Commands On Windows! - Enchanter - 10-07-2013 This is retarded. Just install Linux. RE: Installing Cygwin - Shell Commands On Windows! - Customer - 10-07-2013 (10-07-2013, 12:34 AM)Enchanter Wrote: This is retarded. Just install Linux. Or you could kill about 2 hours, and install this. RE: Installing Cygwin - Shell Commands On Windows! - Enchanter - 10-07-2013 (10-07-2013, 07:11 AM)Customer Wrote: Or you could kill about 2 hours, and install this.Two hours? LOL. It takes 20 minutes at the most to install a distro like Manjaro. RE: Installing Cygwin - Shell Commands On Windows! - Customer - 10-07-2013 (10-07-2013, 07:28 AM)Enchanter Wrote: Two hours? LOL. It takes 20 minutes at the most to install a distro like Manjaro. I was including download time. Unless you're a casual pleb, and install through CD. |