Pages

Tuesday, February 9, 2016

Anaconda for python programming

I wanted to use  some packages in python for my work. Anaconda provided me all the packages like numpy, matplotlib, scipy and  spyder within single package. It was really helpful for me.
One can have windows as well as linux installation files. Following is the url of anaconda

https://www.continuum.io/downloads

Writing linux command output to file

In case you want to write the output of a command in linux terminal in text file, type the command as follows: Here I am giving an example of 'ls' command

ls > filename.txt

Sunday, February 7, 2016

Zip folder without compression on linux terminal

I used the following command:

zip -r -0 projects_7Feb16.zip projects/

This created zip file named  'projects_7Feb16.zip'  of the folder named as "projects" in the current working directory (cwd)

Note: My current working direcotory was a folder where "projects" folder was situated. One needs to give full path of the folder if cwd is different.