19,987 reputation
34475
bio website
location United States
age
visits member for 3 years, 2 months
seen 10 hours ago

Debian user, GNU/Linux enthusiast, FLOSS supporter, hobby developer.


1d
comment Transfer files between Windows and Linux machines?
You can use something like WinSCP or other Windows ssh / scp client to access the Linux machine after you set up an ssh server. Basic samba set-up is very simple as well. Perhaps you were looking at the wrong tutorials.
1d
comment Is it possible to make a symbolic link of a file in other machine?
The only way would be to mount the remote directory somewhere locally.
2d
comment Move to other end of paragraph in vim (not a visual block)
@TylerDurden There is no swap key. Just use {}.
Oct
17
comment Optional arguments after or before the mandatory arguments?
@MichaelMrozek The POSIX standard getopts actually expects all option arguments to come before non-option arguments ("operands"). The script itself has to do extra work to support interleaving the two. I do not know about getopt since it is less standard and there are multiple (GNU and not GNU) versions out there.
Oct
16
comment How can I link my C program against the Arb library?
Looks like you'll need to grab and install a library from the same website: fredrikj.net/arb
Oct
13
comment Linking a static library when compiling a C program
With static libraries you don't need to use -l. Try gcc abc.c libad.a, or whatever the actual static library name is. Just pretend the library is another object file.
Oct
11
comment What means a number of links > 1 for directories?
Remember that . and .. are hardlinks. In your case /etc has 161 subdirectories, all of whom contain a .. hardlink to it. See here and here.
Oct
11
comment What does && mean in cd “$OLDPWD” && pwd?
@Tim That is a history question that maybe someone else can answer. Post a new question as suggested instead of editing a closed one.
Oct
11
comment What does && mean in cd “$OLDPWD” && pwd?
@Tim Doesn't cd - mean the same as cd "$OLDPWD"? -- No. cd - doesn't print out the current dir after running cd "$OLDPWD", does it? -- Yes it does. This takes 2 seconds to verify for yourself. It is also in the definition.
Oct
11
comment What does && mean in cd “$OLDPWD” && pwd?
@Tim No. See my previous comment.
Oct
11
comment What does && mean in cd “$OLDPWD” && pwd?
@Tim && pwd is part of the definition. Why questions like this are hard to answer. Why is && pwd in the definition? Probably to be consistent with historical practice. Why is this historical practice? You'll have to ask someone who was there.
Oct
10
comment Why can't I install the midnight commander on Debian?
I don't think wheezy-updates is the same as wheezy, the main repository.
Sep
16
comment What does the underscore motion do in vim?
@TylerDurden The difference is 1 (line), as is the difference between [count] - 1 and [count] for any value of [count]. As Ingo mentioned, it would do you some good to read vim's built-in help which is quite clear.
Aug
27
comment Bash tab completion fails inside of command substitution
$() is called command substitution.
Aug
27
comment Bash tab completion fails inside of command substitution
Double-check for typos. What is PROCESS_NAME set to when you run the command?
Aug
26
comment How to Determine the IP Address of who logged into Root?
@Patrick improvement over what? Having separate user accounts for separate people is almost certainly an improvement over having several people share a single root account.
Aug
22
comment downloading debian securely
Debian provides checksums of all its ISOs on its website.
Aug
20
comment Count how many elements in the nth column in a whole file
You may want to update your answer based on comments to the original question. Evidently OP means to count the commas and does not mean length($2) literally.
Aug
20
comment Count how many elements in the nth column in a whole file
Can you clarify what you mean by length($2)? Do you mean "number of characters" (like awk does) excluding commas, or do you mean number of fields, like "number of commas + 1"? For example, your "length($2)" for 12,13 is 2 or 4?
Aug
20
comment examine the exit code of processes launched in parallel from a script
Couldn't you can use wait on each process sequentially?