Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
2
Newest
 Teacher
Impact
~8 people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
Aug
28
awarded  Teacher
Aug
25
comment Outputting PID of Rails server(s) with ps aux | grep - breaks when put into an alias?
Yes, and double quotes allow variables to be interpolated into the string.
Aug
25
answered Outputting PID of Rails server(s) with ps aux | grep - breaks when put into an alias?
Dec
24
comment Bash Script Parsing Argument not working correctly
I prefer to save IFS using quotes (SAVEIFS="$IFS") to preserve whitespace, which IFS by default is. Setting $IFS=$SAVEIFS does not do what you want, you want IFS="$SAVEIFS". $IFS="whatever" will try to set the contents of IFS, not IFS. You do not have to restore IFS when leaving the script, because it runs in its own subshell. But I would enclose all those $@ assignments in quotes: first="${@:3:1}".
Feb
14
comment SUID permissions - Which is correct?
Right but if you are worried about setuid/setgid programs having too many permissions, selinux manages it and only gives it the perms it needs, even with setuid on.
Feb
14
answered SUID permissions - Which is correct?
Feb
6
comment How can I verify that a PGP key is imported into RPM?
Better way through some code I found: KEYFILE=/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release; KEYID=$(echo $(gpg --throw-keyids < $KEYFILE)|cut -c11-18|tr [A-Z] [a-z]); rpm -q gpg-pubkey-$KEYID
Feb
4
comment If Statement with 2 Variables - Bash
Could even use the -a syntax if [ $VARA -eq 0 -a $VARB -eq 0 ]; then.... -a is and and -o is or.
Jan
3
awarded  Supporter
Jan
3
comment How to vgscan in RHEL 5.8 rescue mode?
You can also just type in lvm to get into an interactive lvm prompt, and then work with the lvm commands.