Reputation
6,695
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
21 34
Newest
 Enlightened
Impact
~514k people reached

Jul
25
comment How come zipping a created disk image, makes smaller files than piping?
Also, as well as richard's comment, can you add the output of ls -l image.gz in both cases (assuming that's what you called it). Lastly, are you sure rdiskx isn't changing between executions?
Jul
25
reviewed Approve How come zipping a created disk image, makes smaller files than piping?
Jul
23
comment Give a user the permission to access files in a directory
Can you describe what happens. Do the commands generate errors, do they work but the user is still not able to access files, etc. Also, can you show the command used to mount the NFS filesystem, and the resulting mount details.
Jul
23
revised Give a user the permission to access files in a directory
fixed formatting and some spelling
Jul
22
comment Create ssh root password
Once logged in, can you switch to root (su - root) using your old root password?
Jul
21
reviewed Approve Dead keys not working in Java Swing applications
Jul
21
reviewed Approve Is it possible to find out the hosts in the known_hosts file?
Jul
21
reviewed Approve Find out which modules are associated with a usb device?
Jul
21
reviewed Approve How to transfer data “offline” between osx and ubuntu?
Jul
21
reviewed Edit how to return to underlying script from tail -f
Jul
21
revised how to return to underlying script from tail -f
updated formatting and minor language corrections.
Jul
17
comment How to terminate a shell script?
What OS (or UNIX version) are you running this on. What does ps -ef | grep [scriptname] show you?
Jul
17
revised /usr/sbin/sendmail: Permission denied
updated info from comments
Jul
16
reviewed Approve Shell script to send an alert mail if disk usage exceeds 90%
Jul
16
comment How would you get all users history
This is getting into discussion territory so last one from me - my point isn't whether it's common, it's whether you need to include all cases. That's why I said 70% (random guess). What you're asking is actually much more complicated than it looks at first glance, because you're not in control of the source data in any way.
Jul
16
comment How would you get all users history
You are missing the point - I can choose to name my history file anything I like, so if you don't check the $HISTFILE value on a per user basis you can't find them.
Jul
16
comment How would you get all users history
Exactly, basically, you're (the sysadmin) not in control of how and where users record their command history, and as such 'locating all of it' is going to be very difficult. There are probably solutions which record command history outside of the shell functions, auditing tools and the like.
Jul
16
comment How would you get all users history
So if I change $HISTFILE in my session to ~/whateveh.out, then how will your find find it?
Jul
16
comment How would you get all users history
You're assuming that everyone is a) recording history, b) using the same shell and c) not changing the location of their own history. You'll need to either accept a 70% success rate on your approach, or you'll need to scan config files in every user's home directory, work out where (if) they are storing history and look there. Good luck.
Jul
16
reviewed Approve Unresponsive desktop after resume from hibernation