282 reputation
29
bio website aavalam.github.com
location United States
age 45
visits member for 1 year, 5 months
seen Feb 14 at 7:25

profile for vgoff on Stack Exchange, a network of free, community-driven Q&A sites

Systems/Network Admin and Programmer. Learning Ruby and Golang and Python at http://RubyLearning.org!


Dec
15
comment How do I prevent Xorg from loading one-time?
You can't init 1 or init 3 from your boot loader? Either Grub or Lilo. This seems like it would be the reasonable thing to do.
Nov
2
awarded  Yearling
Sep
13
comment Delete 100 lines from vi editor using single command
But it won't perform the operation if there are less than 100 lines. I guess the answer that 'it deletes what it can' is reasonable, except that it is wrong. @suspectus I think has the best answer, it relies on no position, so will always work, regardless of initial cursor location. If the 'entire file' needs to be cleared of lines, that will always do so. I was kind of disappointed that the OP did not give the answer they gave, and the supplied (if any) solution the interviewer gave.
Sep
13
comment Delete 100 lines from vi editor using single command
Actually if it is less than 100 lines in the file, it won't do anything. Check it by opening up vim (perhaps without any plugins that you have) and see. It is easy to check. And yes, though I mentioned it only because they tagged it as 'commmand line' which implies a command from the command line.
Sep
12
comment Delete 100 lines from vi editor using single command
Making the assumption that the file is exactly 100 lines long, and the cursor is on line 1, this is the correct answer. If the cursor is on line 2, then no action will happen if you press 100dd. So a novice vim user, as @Munim indicates may indeed think that this is the correct answer, but they would be correct only in a very specific case. And this would not work from the command line. Unless of course, you record the command and read it in later vim -s 100dd_command file.txt
Sep
12
revised Delete 100 lines from vi editor using single command
added 2 characters in body
Aug
28
awarded  Critic
Aug
27
answered Delete 100 lines from vi editor using single command
Aug
9
answered A Calendar/Scheduling application
Jun
7
comment Remember password after `sudo -i`
I am sorry, I don't know what 'sth' means. But if it means 'steps' then then why does it not ask for the password between the steps? Because step 2 you are not using the -i and so it remembers the password, in the third step, then the rules apply according to the documentation. Once the exit is done, you are changing environments by changing the shell.
Jun
2
answered Remember password after `sudo -i`
May
15
revised Setting a network hostname doesn't work
added the network name part of this, to include NIS, DHCP server and /etc/hosts file.
May
15
revised Setting a network hostname doesn't work
Added man page link directly to hostname.
May
15
answered Setting a network hostname doesn't work
Feb
7
revised Byobu with tmux, how to use F-Keys
Updated as I found the noted changes
Jan
27
answered Byobu with tmux, how to use F-Keys
Dec
5
comment How can I override the /etc/hosts file at user level?
Might want to add this answer to the previous (duplicate) question, if you haven't already.
Dec
1
awarded  Enthusiast
Nov
27
comment How to install Ruby Test to Sublime Text 2
Then please share your solution and accept it as the answer. It will help others that are having a similar problem.
Nov
21
reviewed Reviewed Given a git patch id, how to find out which kernel release contains it?