1,971 reputation
37
bio website
location
age
visits member for 2 years, 6 months
seen 6 hours ago

Apr
18
comment Sudo su issue on ubuntu 14.04 lts: /root/zsh can't not be found
Are you able to boot into runlevel1 or use a live environment to make changes to /etc/passwd?
Mar
28
comment zsh: How to check if an option is enabled
It should be noted that setopt only prints the options not enabled by default for that emulation mode.
Mar
14
comment Is it possible to have total no. of blocks taken by same files be different on two PCs?
I think you mean blocks.
Mar
14
comment Did this tutorial block pings to my server?
the output of iptables-save -c would be of use.
Mar
9
comment Check if $REPLY is in a range of numbers
You may want to strip leading zeros if you use this. a=08; (( a > 1 )) will error since 08 is considered octal. you could also force decimal with 10#$REPLY. cmd && cmd isn't quite the same as if cmd; then ... Once you need a else part, chaining logical && and || can cause subtle bugs.
Mar
8
comment How can I get `cacafire` to show up in the original gnome-terminal, instead of a separate window?
@merlin2011 That sounds like a bug, but it does indeed work. asciinema.org/a/8070
Mar
8
revised How can I get `cacafire` to show up in the original gnome-terminal, instead of a separate window?
added 3 characters in body
Mar
8
answered How can I get `cacafire` to show up in the original gnome-terminal, instead of a separate window?
Feb
12
comment Add multiple subdirectories under the same parent directory to PATH
You don't need the export, PATH is already marked for export and will be put into child process' environments.
Feb
5
comment Using $? in an if statement
@bonsaiviking I am well aware of what $? expands to, i am pointing out there is no point in the test being used; since if some command does the same thing with one statement versus having two separate statements. if the command is already long, adding three more characters wouldn't make the 'unreadable' terribly more 'unreadable'.
Feb
5
comment cd ${DIR_PATH} returns 'No such file or directory'
typically the program that logs a user into the system sets that variable, like login(1), not the shell.
Feb
4
comment Using $? in an if statement
Testing if $? is equal to 0 with an if statement is pointless, if expects a command and if said command returns 0, it runs the code in the block. so if true; then echo hello; fi will echo hello since the command true returned 0.
Jan
26
revised Sed / Awk - Find string exactly n characters long
added 2 characters in body
Jan
26
revised Sed / Awk - Find string exactly n characters long
added 94 characters in body
Jan
26
comment Sed / Awk - Find string exactly n characters long
pubs.opengroup.org/onlinepubs/007904875/basedefs/… Because it isn't standardized, thus may not work everywhere. which seems to be a untold part of the question from reading his comments.
Jan
26
answered Is there a way to monitor progress of a btrfs rebalance?
Jan
26
answered Sed / Awk - Find string exactly n characters long
Jan
16
comment Can I have the shell ignore the command line sometimes but not always?
normal parsing still happens, so : Mark's answer will cause the shell to wait for the ending '.
Jan
15
comment Does Bash have similar features such as Fish's autosuggestions and highlighting?
Try it over a high latency ssh link, you will come to hate the inline features pretty fast.
Jan
14
revised Better help for bash?
added 3 characters in body