Category Archives: Linux

run firefox on a remote Linux server

I have a python script which opens firefox. I can ssh to my mac and run the script without issue. But when I ssh to the raspberry pi 2 (running Ubuntu Mate 15.04) and try to run the script, it … Continue reading

Posted in Linux | Tagged , , | 1 Comment

freeze

Create a record of the installed libraries in a text file (requirements.txt). Dude I should have known it before… $ pip freeze > requirements.txt

Posted in Linux, programming | Tagged , | Leave a comment

directory size and count of files

List the size of current directory and its subdirectories du -ch List the size of current directory and suppress the reports of its subdiectories du -sh Count number of current directory files/subdirectories and total files in all subdirectories echo * … Continue reading

Posted in Linux | Leave a comment