| bio | website | |
|---|---|---|
| location | United States | |
| age | ||
| visits | member for | 1 year, 9 months |
| seen | 5 hours ago | |
| stats | profile views | 480 |
Debian user, GNU/Linux enthusiast, FLOSS supporter, hobby developer.
|
Jan 23 |
comment |
How could I make multiple symbolic links for multiple directories, conveniently @StephaneChazelas Oh right, I read too fast and completely missed the second part, sorry. |
|
Jan 22 |
reviewed | Approve suggested edit on How can I open a file in VIM in readonly mode if it already has a swapfile? |
|
Jan 18 |
comment |
Why unix mv program doesn't need -R (recursive) option for directories but cp does need it? @RuslanKhusnullin Your coffee analogy works for cp and mv too - it does not require any level of "nerdness" to understand, just basic common sense. A true copy of a cup of coffee is not an empty cup - you have to recursively copy not only the cup, but all of its contents (the coffee) too. However, when you move a cup of coffee you don't have to move the contents separately - the contents move with the container naturally. |
|
Jan 18 |
comment |
Solaris: find the day of last Monday,Tuesday,…Sunday by means of shell script Don't worry, none of the other answers so far uses pure shell + Solaris date anyways. |
|
Jan 18 |
comment |
Changing tmux .bash_profile behavior It appears that tmux starts login shells by default. I am not sure if there is a reason for this, but if you want to make tmux start non-login shells instead you can add set-option default-command bash to your .tmux.conf. (.bash_profile is only read by login shells; non-login shells ignore it). |
|
Jan 17 |
comment |
What are the advantages of the Unix file system structure @fluffy Separate filesystems offer slightly stronger separation, but that point is partially moot as it is not possible to separate /bin, /etc, from /. |
|
Jan 17 |
comment |
Multiple similar entries in ssh config It appears the %h feature appeared in release 5.6 of OpenSSH. I was wondering why I hadn't seen it before - the version in Debian Squeeze is 5.5. |
|
Jan 17 |
comment |
Multiple similar entries in ssh config @user27915816 Yes, you are right, there is no way to do "templates" as far as I know. The best you can do is separate out the constant lines into a single Host * entry, and have a separate entry for each Host XXX that consists only of the parts that vary (i.e. the Hostname XXX.YYY.ZZZ line). |
|
Jan 17 |
answered | Omitting extension with find? |
|
Jan 17 |
comment |
Recursive find that does not find hidden files or recurse into hidden dirs Where are you adding -type f? I'd put it between -o and -print. |
|
Jan 17 |
answered | Recursive find that does not find hidden files or recurse into hidden dirs |
|
Jan 16 |
comment |
Multiline shell script comments - how does this work? That single-quote commenting method doesn't work on any section of script that itself uses single-quotes. And if you are using quotes anywhere near as much as you should, that means you'll have legitimate single quotes sprinkled all throughout the script. It is so much simpler to just use any decent editor that lets you do block linewise comments. |
|
Jan 16 |
awarded | Guru |
|
Dec 26 |
awarded | Quorum |
|
Dec 21 |
comment |
Why is vi apparently broken (viminfo error E576), and how can I fix it? Is your ~/.viminfo corrupt? Try moving it elsewhere and see if the problem returns. Keep in mind many systems that provide vim simply provide vi as a symlink to vim. |
|
Dec 20 |
revised |
Bash prompt not recognizing Unicode escapes added 217 characters in body |
|
Dec 20 |
answered | Bash prompt not recognizing Unicode escapes |
|
Dec 20 |
comment |
Is there any way to test out PS1 Bash Prompts before committing them? A web tool sounds like even more of a pain than starting a new shell, unless you want to play around with bash when not on a Unix machine. Is that your goal (a web-based bash)? |
|
Dec 20 |
comment |
Is there any way to test out PS1 Bash Prompts before committing them? Define "commit". The easiest way for me is to just start a new shell. Then if I screw it up I can just exit it and no permanent changes have been made. |
|
Dec 20 |
comment |
how to add a description in footer As @ChrisDown has said, just go with a version control system. No need to reinvent existing, sophisticated wheels crudely (it takes a lot of time to implement an efficient and robust VCS). |