Reputation
4,189
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 11 30
Newest
 Explainer
Impact
~479k people reached

May
12
comment How do I remotely edit files via ssh?
Unsurprisingly, the installation step will fail on distributions that are not deb-based and hence don't have apt-get. (In which case, yum or zypper might be present.) They also require root on the local machine, whcih may or may not be available. (This is not to say it's a bad solution, but it comes with a big prerequisite.)
May
6
revised Removing line-breaks, whitespaces and tabs from every file
deleted 1 character in body
May
6
comment Removing line-breaks, whitespaces and tabs from every file
Point well taken re multi-file arguments. However, I am not asking for clarifications or improvements to the OP's question, so this is rightfully not a comment. (For a lower-rep OP, I would possibly have gone back to provide more detail.)
May
6
answered Removing line-breaks, whitespaces and tabs from every file
May
6
comment Efficient search of unique owners of files and directories
In this case (i.e. assuming number of files is large, number of users is small), gawk '1{u[$0]=1;} END{ for (x in u){print x;}}' might be better than sort -u since it doesn't store one line per file.
May
3
comment PDF documents can only be saved, not opened
Is this consistent across multiple sources of PDFs? The server can hide that it's a PDF (by setting content-type to the generic application/octet-stream), or it can explicitly request that the browser not try plugins to view it (content-disposition: attachment).
May
2
comment Speed issue in copying files from one host to another
What do you use to copy? (Also, looking at top on either end can help you figure out if it's a cpu bottleneck on either end, for example if you use scp with encryption and very slow hardware.)
May
1
comment Why my rescued PDFs forms are empty?
PDF is a file format where you can stick more content on the end that overrides or amends earlier content. (That's at least how acroread fills forms, by putting the text on the end.) If your rescue software looks for the first feasible end of the pdf only, it will not find it. If the incremental portion is incomplete, maybe it will be ignored altogether.
Apr
30
answered Implementing index.php that serves index.html
Apr
26
answered How to choose system user ID for custom packages (RedHat & compatible)?
Apr
26
comment Why can't I remove the empty directory with username www-data?
Just in case it's an SELinux issue: please run getenforce and ls -lZ /home/test for us? Oh, and getfacl /home/test/, to be on the complete side.
Apr
26
comment Want to grep a date in a file and its next 5 lines
Please run grep -V for us. Are you on SunOS/Solaris with its notoriously frugal tools?
Apr
24
comment How can I see previous `at` jobs?
Beyond the stdout/stderr that will be sendmailed to the user (or the user named in the environment variable LOGNAME) as per man at?
Apr
21
answered How to count subdirectories in a directory in UNIX?
Apr
21
comment ssh terminating immediately with message Terminated
Weird… if memory serves, "Terminated" is what the shell would say if somebody had killed your ssh. strace ssh localhost might be helpful, but is lower level than ssh -vvv, so try ssh -vvv first.
Apr
21
answered Can I make davfs ignore untrusted certificates?
Apr
21
comment Can I make davfs ignore untrusted certificates?
Are you in a situation where having the certificate re-issued is costly? (The certificate can contain Subject Alternate Names, which means it could also be valid for the name localhost and the IP 127.0.0.1.)
Apr
20
comment how to create multi tar archives for a huge folder
If your question is how to split your list of 30000 files into 30 lists of 1000 files each, xargs -L may be helpful.
Apr
18
comment Remove all 'at' Jobs except first five jobs
tail -n +6 will start at line 6. (Yes, bizarre syntax.) Or, untested, sed -ne '6,$p'
Apr
14
comment SSL by IP or domain
A certificate can cover multiple names ("Subject Alternative Names"), and my vague memory is that they have the form DNS:www.foo.example in the config, so I guess there's a syntax to have naked IPs in there, too.