Reputation
254
Top tag
Next privilege 300 Rep.
Create tags
Badges
1 8
Newest
 Critic
Impact
~1k people reached

Mar
20
comment How do I count text lines?
Restarting the shell or using source ~/.profile is only needed if you had to change it to add ~/bin to PATH, which you didn't mention.
Mar
20
comment How do I count text lines?
Shorter, more efficient: print(sum(1 for line in open(sys.argv[1]) if line != '\n'))
Mar
2
answered Pre-define colors for Terminal?
Jan
27
awarded  Critic
Jan
27
awarded  Commentator
Jan
27
comment Why doesn't running “sudo shutdown now” shutdown?
Maybe you're thinking of the Windows command shutdown /a, which aborts a shutdown (equivalent to shutdown -c in Ubuntu).
Nov
28
awarded  Yearling
Nov
28
awarded  Explainer
Nov
28
revised tr: convert apostrophe to ASCII
made title more specific; added tags
Nov
28
revised How would I get Ubuntu Server to automatically start programs on two virtual terminals?
made title specific; caps and punctuation; tagged [virtual-console]
Nov
28
suggested approved edit on tr: convert apostrophe to ASCII
Nov
28
suggested approved edit on How would I get Ubuntu Server to automatically start programs on two virtual terminals?
Nov
28
answered tr: convert apostrophe to ASCII
Nov
28
comment tr: convert apostrophe to ASCII
To explain the last part further: tr is replacing each of the three bytes separately with ', hence ''' as well as the broken sequences where it has replaced two of the three bytes in the similar characters and . It should instead understand the three bytes as together meaning one character, and replace that instead.
Nov
28
revised tr: convert apostrophe to ASCII
fixed quote markup
Nov
28
suggested approved edit on tr: convert apostrophe to ASCII
Oct
31
comment What is a “failed to create a symbolic link: file exists” error?
There's even cp -s.
Sep
28
revised Startup script can be run multiple times despite pid file
fixed formatting, punctuation, spelling; more specific title
Sep
28
suggested approved edit on Startup script can be run multiple times despite pid file
Sep
28
revised How can I delete numbered files in a given range?
more descriptive title; punctuation; corrected a couple of words