Skip to content

Instantly share code, notes, and snippets.

@prodeveloper
Last active January 24, 2017 07:31
Show Gist options
  • Select an option

  • Save prodeveloper/816b8fe1fd4abc7d557ec27f2da34b51 to your computer and use it in GitHub Desktop.

Select an option

Save prodeveloper/816b8fe1fd4abc7d557ec27f2da34b51 to your computer and use it in GitHub Desktop.
Introduction to C9

##Step 1

Register on c9.io

##Step 2

Select to create a new workspace

 photo Screen Shot 2017-01-22 at 10.16.03_zpsgadlnexa.png

Call your workspace "introduction-python-chencha"

On description tab put in "My first python instance"

On templates select "Python"

 photo Screen Shot 2017-01-22 at 10.21.22_zpsqmg7b1i9.png

##Step 3

You should now be in the main editor window.

For now this is the area we are interested in.

 photo Screen Shot 2017-01-22 at 10.25.25_zpssmmcgjan.png

The bash window

Expand it as such  photo Screen Shot 2017-01-22 at 10.27.33_zpsstomkvdc.png

##Step 4

Try out the following commands

ls                            # lists your files
ls -l                         # lists your files in 'long format', which contains the exact size of the file, who owns the file and who has the right to look at it, and when it was last modified
ls -a                         # lists all files, including hidden files
ln -s <filename> <link>       # creates symbolic link to file
touch <filename>              # creates or updates your file
cat > <filename>              # places standard input into file
more <filename>               # shows the first part of a file (move with space and type q to quit)
head <filename>               # outputs the first 10 lines of file
tail <filename>               # outputs the last 10 lines of file (useful with -f option)
emacs <filename>              # lets you create and edit a file
mv <filename1> <filename2>    # moves a file
cp <filename1> <filename2>    # copies a file
rm <filename>                 # removes a file
diff <filename1> <filename2>  # compares files, and shows where they differ
wc <filename>                 # tells you how many lines, words and characters there are in a file
chmod -options <filename>     # lets you change the read, write, and execute permissions on your files
gzip <filename>               # compresses files
gunzip <filename>             # uncompresses files compressed by gzip
gzcat <filename>              # lets you look at gzipped file without actually having to gunzip it
lpr <filename>                # print the file
lpq                           # check out the printer queue
lprm <jobnumber>              # remove something from the printer queue
genscript                     # converts plain text files into postscript for printing and gives you some options for formatting
dvips <filename>              # print .dvi files (i.e. files produced by LaTeX)
grep <pattern> <filenames>    # looks for the string in the files
grep -r <pattern> <dir>       # search recursively for pattern in directory

##References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment