3,803 reputation
1816
bio website
location
age
visits member for 4 years
seen 9 hours ago

11h
answered How do I use man pages to learn how to use commands?
Mar
24
comment How can I search in vim for a pattern that is NOT case sensitive?
Just for the record, smartcase is vim-only. But OP's "vi" is likely vim, so it's worth mentioning/trying.
Mar
24
revised How can I search in vim for a pattern that is NOT case sensitive?
Looked it up for you.
Mar
19
revised Do I need swap space if I have more than enough amount of RAM?
Fix spelling, add a brief description for people not familiar with the implications of the hibernate function.
Mar
13
comment Which of the following codes will run in the same process of the current shell
@HHan You need to attach strace to the original shell. You could put all the lines in a script and then strace a shell running the script, or attach strace to your running shell with strace -p from a separate terminal.
Mar
13
answered Which of the following codes will run in the same process of the current shell
Mar
12
comment monitor linux file systems using df
Aren't -k and -h contradictory?
Mar
9
revised Why specify block size when copying devices of a finite size?
added 16 characters in body
Mar
9
answered Why specify block size when copying devices of a finite size?
Mar
6
comment Why is architecture listed thrice in uname -a?
If you need an example of a more common one where all three are different, I found some examples on google of "i686 athlon i386".
Mar
4
comment Shell script `rm -r`: Redirect write-protected prompt and answer “n”
"I want the names of the protected files." - can't you get these by just seeing what files are still there at the end?
Mar
4
comment Shell script `rm -r`: Redirect write-protected prompt and answer “n”
It'll just skip them. But if you want you could just create an example tree to test on, with touch to create empty files and chmod to set whatever permission you want on files or directories. However, if you're not able to delete them because they're owned by someone else, you'll get a message.
Mar
3
comment Shell script `rm -r`: Redirect write-protected prompt and answer “n”
I found it - using g=w will only find files with permission of exactly 020, rather than all files having it set. You can use -g=w or /g=w to find files with it set (-ug=w finds files with both user and group write, /ug=w finds files with either set.)
Mar
3
comment Shell script `rm -r`: Redirect write-protected prompt and answer “n”
You should use -delete, not -exec /bin/rm. Neither g=w nor u=w works for me at all; find treats permissions differently from chmod - /=w works for this for me.
Mar
2
answered Why does the specific sequence of options matter for tar command?
Feb
25
awarded  Enlightened
Feb
25
awarded  Nice Answer
Feb
24
comment How do you parse through a subdirectory where the path contains spaces?
@user1854603 What is the exact script you are trying and are you sure it is being executed in bash? If it has no #!/bin/bash line or a /bin/sh line it may be executed in another shell. Your error looks like the one produced by dash.
Feb
24
comment How do you parse through a subdirectory where the path contains spaces?
@jasonwryan you should post this as an answer.
Feb
24
revised How do you parse through a subdirectory where the path contains spaces?
added 269 characters in body