Linux / Python question
Don M
Posts: 1,652
I'm very new to Linux and Python. I have been messing around with a Raspberry Pi with some lessons from the Adafruit website. Wrote a python program to read a DS18B20 temp sensor. My question is there a way to read back the program that was saved? The program is saved as thermometer.py and I would like to read back the python program but don't know the Linux or Python commands to do such.
Thanks.
Don
Thanks.
Don
Comments
If your intent is just to reread, not edit... you can use 'cat' with the file name.
Actually, 'nano' is one of the more pleasant text editors to use. You might try 'man nano' to get an explaination of it.
Yes, better to use "less" because "less" is "more" more or less. Anyway "less" let's you scroll backwards where as "more" does not.
Well the less binary is 4 times the size of more so less is definitely more! Wasn't sure if RaspPi system had it or not, whereas I knew it has more.
That's true, more will fit in places where less won't.
Yeah, yeah, enough of that already.
ROFL!!
I have a coworker that's all windows all the time and asked why "less" was called "less" and I explained that it's because "less does more than more". The look on his face when I explained it to him was priceless!!
Raspberry Pi is using the Busybox binaries for Linux utilities. That might clarify what is available. The binaries are surely smaller, but one can compile Busybox selectively to exclude bloat.
Mie Van de Rohe is the father of "Less is more, and more is less." I guess you might say he was the first minimalist.
http://www.miessociety.org/legacy/
Of course "less" inside Busybox, might be smaller than "more" or "less" outside of Busybox. So you really can't say which is which... or whatever.....
http://www.busybox.net/