Reputation
22,358
Next tag badge:
878/400 score
77/80 answers
Badges
3 51 81
Newest
 Enlightened
Impact
~938k people reached

Jul
28
comment Good style/practices for separators in file (or directory) names
For reference: the POSIX Portable Filename character set.
Jul
27
comment Matching values within columns
Can you what you mean by the dollar signs better? Usually the best way to explain such things is: (1) illustrative sample input (2) sample command (3) expected output. You've got 1 and 3 but are a bit unclear on (2).
Jul
27
comment How do you kick a benign user off your system?
Normally, I'd say don't encourage people to abuse kill -9, and start with gentler signals instead, but I suppose in this context it doesn't matter so much. I am just leaving a comment in case people miss the joke.
Jul
27
comment How do you kick a benign user off your system?
Changed question to reflect assumptions given the accepted answer. In the context of a security breach, the only way to kick a malicious user off your system is to be much smarter than that user. A clever user is not going to let themselves show up in utmp or get found by something as trivial as who(1) or w(1). The only foolproof way to get rid of any potential rootkits that may be installed is to completely wipe and reinstall the system.
Jul
27
awarded  Excavator
Jul
27
revised How do you kick a benign user off your system?
edited title; edited tags
Jul
27
comment awk function with a number parameter for the column you want to print
For a completely different approach, try pgrep -f mysql (assuming pgrep is available).
Jul
27
comment Fastest way of finding files which contain exclusively some text
grep only does line-wise comparison. As Jander has noted above, this may result in false positives since any file containing the search string will match. Gilles' approach is much more sound.
Jul
27
revised How to change the volume name of a FAT32 filesystem?
with less whit
Jul
27
awarded  Good Answer
Jul
26
comment Use a shell variable to execute a comand
Long command pipelines in shell variables should make anyone nervous. What are you trying to do? I recommend taking some time to read and digest BashFAQ 50 before taking this approach any further.
Jul
26
revised Replace whole line in a file from command-line
added 131 characters in body
Jul
26
revised Replace whole line in a file from command-line
edited tags
Jul
26
comment Fastest way of finding files which contain exclusively some text
I'd go look at the documentation for the program you are running first to make sure it does indeed do what you think it does before going on a possible wild goose chase for a magic number across /var, /run, /tmp, etc.
Jul
26
comment Fastest way of finding files which contain exclusively some text
grep matches and returns lines, not files. A recursive grep will return any file containing a line that is an exact match. I don't think that was what the question asked.
Jul
25
comment xfce4 loses title bars on all windows
That would probably depend on your set-up but ~/.xsession-errors might have something useful, or maybe the /var/log/Xorg.*log files.
Jul
25
comment What's the conf file reading between login and non-login shell?
@Mikel That's what I said right? sam was asking if non-interactive == non-login, or if some other sort of relation between the two traits existed. My previous comment said that there is none, since all 4 possibilities can exist. You can have non-interactive, non-login shells, interactive non-login shells, login non-interactive shells, or interactive login shells.
Jul
25
comment Open-Source Audio Playlist 'Standard'
I'd go with m3u8 given how diverse the character set tends to be with artist names, song and album titles, etc.
Jul
25
comment Using rsync to move (not copy) files between directories?
Well, mv can't operate across a network - it would have to rely a local mount (e.g. NFS). If the bottleneck is the network, rsync would probably be faster than mv because rsync can do compression.
Jul
25
comment Using rsync to move (not copy) files between directories?
I don't think rsync can replace mv. I would expect mv to be faster on most file system types when the source and destination are within the same file system, because rsync would have to make a copy no matter what, and mv could probably get away with changing a few directory entries. The closest thing I can find to an rsync mv is the --remove-source-files command, but that does not remove directories.