Reputation
231
Top tag
Next privilege 250 Rep.
View close votes
Badges
1 6
Newest
 Commentator
Impact
~6k people reached

  • 0 posts edited
  • 0 helpful flags
  • 9 votes cast
Jul
27
comment Is there ever a good reason to run sudo su?
@terdon These were shared systems (both Linux and otherwise) where I had sudo access but didn't have the root password. Not every Linux (or UNIX) machine is totally under the control of the person sitting at it. :)
Jul
24
awarded  Commentator
Jul
24
comment Is there ever a good reason to run sudo su?
I never knew about sudo -i or sudo -s before - I've been running UNIXes of various sorts since 1991 and for me sudo su - is just an ingrained habit at this point.
Jan
26
awarded  Nice Answer
Jan
25
comment Is there way to see `man` document only for specified option of a command
@drewbenn Oh, nice. I've always just pressed /+enter to continue on.
Jan
24
awarded  Yearling
Jan
23
answered Is there way to see `man` document only for specified option of a command
Sep
5
suggested rejected edit on Remove all files/directories except for one file
Jul
28
comment Is `-` used only with cd?
For some of the directory-handling builtins like pushd, yes. Otherwise, the meaning of "the previous directory" is not a terribly useful default.
Jul
28
comment Is `-` used only with cd?
Something to keep in mind is that cd is a builtin, not an external command (nor would it have any way of even working as one). cd - is thus a shell-level feature.
May
1
awarded  Teacher
Apr
30
awarded  Editor
Apr
30
comment How to securely automate running commands as root with “sudo su -”?
I knew that, but I brainfarted when I wrote the answer. Fixed, and also expanded a bit on what I meant by "wrapper," thanks.
Apr
30
revised How to securely automate running commands as root with “sudo su -”?
added 104 characters in body
Apr
29
answered How to securely automate running commands as root with “sudo su -”?
Apr
29
awarded  Supporter
Jan
17
answered What are the advantages of the Unix file system structure
Jan
17
comment What are the advantages of the Unix file system structure
The data-and-executable separation argument is complete nonsense. File system organization is for a human's benefit; it's not like there's some physical separation between the bits that prevents them from giving cooties to each other or anything. UNIX's security is historically better because of a stronger, more-tightly-enforced permissions model in general.
Jun
1
comment How do you set an environment variable?
That's distribution-specific and generally not useful for the sort of thing the OP was asking about.
Jun
1
comment How do you set an environment variable?
Also in sh-derivatives you can do export YOURVARIABLE=/path/to/file as a single step, and don't forget that you can do YOURVARIABLE=/path/to/file ./someCommand to have the variable only affect that single command invocation.