1,996 reputation
37
bio website
location
age
visits member for 2 years, 9 months
seen 20 mins ago

Jul
1
comment set ip default outgoing in centos
ip route change default via 162.245.223.67 will also change the default route without the fear of dropping an ssh connection.
Jun
29
comment Securing VPS against access by server company
"How can they reset the root password?" It's hard to answer that without knowing what kind of VPS it is. is it openvz, kvm, xen, ...? If you are able to do full disk encryption, that removes the possibility of containers but doesn't answer the question.
Jun
26
answered zsh completion - show more options than just the alias
Jun
24
comment List directories with dot directories last, then dot files
adding localoptions with it will scope the cshnullglob to the function.
Jun
16
answered Killing subprocesses after the script has finished or is killed
Jun
11
comment How to migrate an IDE VM to a virtio VM?
the spice guest tools do not provide the virtio drivers for windows. slm seemed to have updated his answer with a link to them. you need to make sure windows has the drivers installed before switching the interface to virtio for this to work. Just how do you do that in windows? i don't know and is loosely on topic on this site.
Jun
7
comment How to migrate an IDE VM to a virtio VM?
Installing the virtio drivers prior to the interface swap.
May
11
comment Why we can not see a single hyphen from $0 on a login shell invoked with `--login` option?
exec -a -bash bash will also spawn a login shell for question 3.
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.