919 reputation
316
bio website
location
age
visits member for 1 year, 7 months
seen yesterday

Mar
17
comment How to select complete file in vi, to be pasted in gedit?
:%!xclip didn't work. It just deleted all the text in the file in vi.
Mar
15
comment How to select complete file in vi, to be pasted in gedit?
@warl0ck I didn't do anything special apart from apt-get install.
Mar
5
comment Minimal command to make a copy of a file
Thanks. That saves so much time! Is there a terminology for those brackets?
Oct
30
comment Does `Segmentation fault` message come under STDERR?
yup. got it. if anyone's interested, here's what i did pastebin.com/QyeJYYHC
Oct
30
comment Does `Segmentation fault` message come under STDERR?
Thanks! How would I trap it in shell script? I want to run some other commands depending on whether seg-fault has occurred or not. How would one put an if condition using this?
Oct
30
comment How can I close a terminal without killing the command running in it?
can we prepend nohup to any command that we might type in bash? If yes, how to make it prepended by default?
Oct
30
comment vi <TAB> completes only directories in bash
Thanks. Does this mean I should ideally put the line complete -r vi in /etc/bash_completion? Also what does -r (or other options) mean. Both man complete and complete --help don't seem to tell this.
Oct
30
comment vi <TAB> completes only directories in bash
Thanks! complete -r vi did it for me.
Oct
24
comment How to change shells via script?
@Gilles thanks for feedback. updated the question.
Oct
23
comment Why is my rootfs filling up so fast?
@MartinSchröder thanks, updating ..
Oct
23
comment How to change shells via script?
Thanks for the update. I tried the part under 'Edit', but it's not working as expected. I have to be able to change the terminal prompt after running sudo ./tcsh.csh, which doesn't seem to happen. Also I have $workDir declared in ~/.tcshrc. Should I rather declare it in ~/.bashrc?
Oct
23
comment How to change shells via script?
Thanks. Where does sudo su go? I'd like to automate typing it as well.
Oct
20
comment How to run a command without hitting Enter Key?
@JanSteinman and camh, are there any historical reasons behind this convention (Enter ~= Ctrl+M/J)?
Oct
18
comment How to test for possible conflicts while using alias in bashrc?
Thanks. This is certainly useful, but not able to see how it finds the conflict creating aliases.
Oct
18
comment How to test for possible conflicts while using alias in bashrc?
Thanks. How do I unset tracing?
Oct
18
comment How to test for possible conflicts while using alias in bashrc?
@jordanm Updated.
Oct
18
comment How to test for possible conflicts while using alias in bashrc?
Thanks. But didn't get the alias part. What if a user doesn't know that there exists a command (e.g. ls)? Only thing he seems to know after running alias ls is what is it mapped to and not what it was originally mapped with. I guess one will have to run all the commands with and without \ to find conflicts.
Oct
17
comment How to run a command without hitting Enter Key?
Cool! I thought there is no way to copy-paste unprintable characters.
Oct
17
comment How to run a command without hitting Enter Key?
Ok. It works after changing the file properties.
Oct
17
comment How to run a command without hitting Enter Key?
Thanks. Tried it. Didn't find the option of running it as a script.