For using the shell commands from the python interface, you can use pexpect module in the python.
E.g.
> import pexpect
> import pxssh
> s = pxssh.pxssh()
> s.login('ra.ncra.tifr.res.in','rohit','rohit')
scp -r -oProxyCommand="ssh -W %h:%p rohit@wm.ncra.tifr.res.in" rohit@ra:/Data/rohit/large_size .
find /media/kalenpw/MyBook/Music/ -name '*.mp3' -exec cp {} /media/kalenpw/HDD/Music \;
grep -rnw '/path/to/somewhere/' -e 'pattern'
wget -r -nH --cut-dirs=2 --no-parent --reject="index.html*" http://mysite.com/dir1/dir2/data
wget 'https://asvo.mwatelescope.org:8778/api/download?job_id=142255&file_name=1100328928_ms.zip' -O 20141118_MWA.zip
How to fix: "UnicodeDecodeError: 'ascii' codec can't decode byte"
ffmpeg -framerate 8 -i velocity%d.jpeg -r 20 velocity.avi
str_list=[x for x in str_list if x != '']
python setup.py install
ln -s ~/my_git/lipi/surya ~/anaconda2/lib/python2.7/site-packages
ln -s main folder Destination to be linked
CASA <2>: from setuptools.command import easy_install
CASA <3>: easy_install.main(['--user', 'pip'])
CASA <2>: import subprocess, sys
CASA <3>: subprocess.check_call([sys.executable, '-m', 'pip', 'install', '--user', 'astropy'])
git init
git config --global user.name "rohitcbscient"
git config --global user.name "rohitcbscient@gmail.com"
--------------------------Clone the repository
git remote add origin git@github.com:rohitcbscient/lipi.git
git remote set-url origin https://github.com/rohitcbscient/lipi.git
git pull origin master
For gitlab replace link with: gitlab.fhnw.ch/ip-61/dt_radio_telescope.git
--------------------------git add filename
git status
git commit -m "comment"
git log
git reset filename
git reset HEAD filename
git checkout
#made .gitignore directory
git log --all --decorate --oneline --graph
alias graph='git log --all --decorate --oneline --graph'
git branch branch1
git branch branch2
git branch
git checkout branch1
git commit -a -m 'Both stage and commit with -a'
git merge branch1 # Merges to the current branch
git branch --merged
git branch -d branch1 # Delete branch
git checkout branch3
git checkout
git stash
get stash list
get stash apply
get stash apply