PDF download Download Article PDF download Download Article

The Cygwin Console is a popular command-prompt tool for Windows (also called Cygwin Bash Shell) that mimics a Linux environment to execute your commands. This wikiHow will give you a list of commands you can use in Cygwin. When you initially launch the console, you are automatically sent to your Cygwin home directory, which generally looks like your Windows username. Since Cygwin uses a Linux approach, the Windows backslash(\) becomes the forward-slash(/) instead.

Method 1
Method 1 of 5:

Cutting and Pasting Content from Windows to Cygwin

PDF download Download Article
  1. This can be any application or text from a web page.
  2. You can also go to Edit > Copy once you've highlighted what you want to copy.
    Advertisement
  3. The keyboard shortcut Alt + Tab will allow you to change active windows while right-clicking prompts a menu to pop up.
  4. The content you previously copied will paste into the window.
  5. Advertisement
Method 2
Method 2 of 5:

Working with Files

PDF download Download Article
  1. . This will create a copy of a file.
  2. . This code creates a copy of a directory.
  3. . This moves or renames a file.
  4. . This deletes a file.
  5. Advertisement
Method 3
Method 3 of 5:

Working with Directories

PDF download Download Article
  1. . Will change the directory you're currently in.
  2. . This lists the files in the current directory.
  3. . Lists all the files in the current directory as well as their attributes.
  4. . This creates a new directory.
  5. . This tells you what directory you're in.
  6. Advertisement
Method 4
Method 4 of 5:

Archiving or Extracting Files and Directories

PDF download Download Article
  1. . Pick one of z,c,v,f to execute a command.
    • -z - filter the archive through gzip
    • -c - create a new archive
    • -v - verbosely list files processed
    • -f - use archive file
  2. . Pick one of x,v,z,f to execute a command.
    • -x - extract files from an archive
    • -v - verbosely list files processed
    • -z - filter the archive through gzip
    • -f - use archive file
  3. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

  • If you need more information about a specific command, like "mv," use the "info" or "man" command. For example, you'd enter: $man mv or $info mv. To exit man or info, type q.[1]
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

About This Article

Darlene Antonelli, MA
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Darlene Antonelli, MA. Darlene has been writing and editing tech content at wikiHow since 2019. She previously worked for AppleCare, served as a writing tutor, volunteered in IT at an animal rescue, and taught as an adjunct professor for EN101 and EN102. Darlene has completed Coursera courses on technology, writing, and language. She holds both a BA (2011) and an MA (2012) from Rowan University in Writing, with a focus on workplace communication. With her extensive experience, academic background, and ongoing learning, Darlene has become the go-to grammar expert for her friends and family, as well as a skilled wordsmith for anyone in need. This article has been viewed 22,040 times.
How helpful is this?
Co-authors: 3
Updated: July 12, 2021
Views: 22,040
Categories: Command Prompt
Article SummaryX

1. Navigate to the content you want to copy in Windows.
2. Highlight what you want to copy and press Ctrl + C.
3. Go to the Cygwin window and right-click a blank spot.
4. Hover your mouse over Edit and select Paste.

Did this summary help you?

Thanks to all authors for creating a page that has been read 22,040 times.

Is this article up to date?

Advertisement