Reputation
2,225
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
5 15
Newest
 Custodian
Impact
~105k people reached

  • 0 posts edited
  • 0 helpful flags
  • 42 votes cast
11h
comment How to “cat /etc/shadow” on an HMC?
In the dawn of time the password was in /etc/passwd, which was (and still is) world-readable. Hence the name, of course. Back then it seemed that the one-way encryption algorithm (use the password as the key to encrypt a constant string) was strong enough that there was no danger of brute-forcing. Eventually this was no longer a reasonable assumption, and since /etc/passwd is used to look up user names, the password was moved to a new unreadable location.
15h
revised Storing shell scripts
added 8 characters in body
18h
comment Storing shell scripts
Looks good. Your advice about leaving scripts elsewhere and linking is often appropriate, you could explain more (and add the ln -s while you're at it).
18h
answered Storing shell scripts
18h
comment Storing shell scripts
The applications are hiding their state by putting it in the dotted directory .local/share, but your bin is part of your operating environment-- of course it's not data but it's also not noise. As you can see from the other answers, the standard location is ~/bin. I actually use several directories depending on what it is, but none of them are hidden.
19h
comment Storing shell scripts
Most of it is good advice, but why bother hiding your bin in .local? The standard location for these things is $HOME/bin.
May
3
comment Replacing string with value of variable using sed or awk
Which part is not working? How are you running this script?
May
3
comment Replacing string with value of variable using sed or awk
Why? Your version will explode as soon as there's a space in either the pattern or the replacement.
Apr
21
awarded  Custodian
Apr
21
reviewed Reject How to install a C compiler on Linux?
Apr
21
revised Linux shell script to automate user creation
added 146 characters in body
Apr
21
revised Linux shell script to automate user creation
added 86 characters in body
Apr
21
answered Linux shell script to automate user creation
Apr
15
comment Responding to prompts automatically?
Yes there is, but two-way communication is not straightforward-- too easy to get stuck. Ask more specifically about the programming language you are interested in.
Apr
15
revised How to Remove Strings between two Parenthesis in Unix
added 157 characters in body
Apr
15
revised How to Remove Strings between two Parenthesis in Unix
added 157 characters in body
Apr
15
comment How to Remove Strings between two Parenthesis in Unix
What do you mean you "have to"? Perl is as much part of unix as sed. If you want something that fits on the commandline, I've added a version.
Apr
15
revised How to Remove Strings between two Parenthesis in Unix
added 157 characters in body
Apr
14
answered How to Remove Strings between two Parenthesis in Unix
Apr
14
answered Change only one bit in a file