238 reputation
18
bio website campderros.com
location
age
visits member for 2 years, 3 months
seen yesterday

May
23
awarded  Popular Question
Oct
28
comment Why do we need “at” command in linux
Also worth pointing out as another difference with cron, is that at retains your environment the way it was when the job was scheduled: same working directory, environment variables, ...
Oct
1
comment Exit vim more quickly
Also, ESC Z Q to exit without saving
Sep
27
comment How can I tell if a TCP port is open or not?
I always try lsof -i:5454 (you may need to execute it as the same user that the program opening the port does, or as root).
Sep
13
comment What does the Windows flag in the Linux logo of kernel 3.11 mean?
@LiuYan刘研 Oh, I'm really disappointed by this. Also he has changed the name to Suicidal Squirrel instead of the cool Linux for Workgroups
Sep
9
comment How to compile the C compiler from scratch, then compile Unix/Linux from scratch
and how would you know if there is some backdoor in the core? Maybe you can trust in your compiler, but can you trust that the SSH source you are compiling does not have any backdoor? You'll have to audit AAAAALLLLLLLL the code.
Aug
6
comment cp with a single argument containing wildcards
a shell (bash, sh, zsh, ...) is a command line **interpreter**, so it interprets your commands and then executes them. So the command you typed is not always the command that will be executed. And the real command can't know what did you really type (in this instance, cp only sees file1.pdf, file2.pdf and this_is_a_folder.pdf, not your wildcard.
Jul
17
comment Diff the output of the last two commands
also, you can pipe the output to diff if you wanted (although in this case may not have sense if you want to view the complete output before diffing): $ big long command 1; $ big long command 2 | diff -u <(!-1) -
Jun
18
comment Which folder should I write to for my intermediate files, as a dev?
+1 for mktemp. For me this is the correct answer: delegate the task of safely creating a temporary file to mktemp (see this article ). Although the one answer quoting the FHS has great value too.
May
28
comment How long is the password for executing a command with sudo cached?
and you know, use visudo to edit sudo configuration, NEVER edit /etc/sudoers directly.
May
8
awarded  Yearling
May
8
comment why does ls -d also list files, and where is it documented?
To really see the command executed after the shell expansion, echo it. So if you want to know what is happening when you do ls a*, first execute echo ls a*
May
1
awarded  Nice Question
Apr
26
awarded  Scholar
Apr
26
accepted difference between function foo() {} and foo() {}
Apr
26
awarded  Student
Apr
26
asked difference between function foo() {} and foo() {}
Apr
11
awarded  Commentator
Apr
11
comment Triple compression and I only save 1% in space?
@user606723 really he has made triple compression. Although the tar command created a filename named folder.tar, it really should be folder.tar.gz because he is using the z flag there.
Mar
15
comment This file must be edited with the 'visudo' command.?
@DietrichEpp the sudoers file does not have write permission, but that won't prevent an unknowledgeable user to force-write it if he/she doesn't know about sudo