Reputation
1,762
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
8 13
Newest
 Yearling
Impact
~123k people reached

  • 0 posts edited
  • 1 helpful flag
  • 58 votes cast
Jan
19
awarded  Yearling
Jan
18
reviewed No Action Needed Is there a way to see details of all the threads that a process has in Linux?
Nov
5
reviewed No Action Needed Download arbitrary number of files using wget from a self-redirecting directory
May
10
awarded  Guru
Mar
23
reviewed Reviewed Debian — newest version of Eclipse
Mar
23
reviewed No Action Needed Displaying week's number in certain format using ncal or cal
Mar
9
reviewed No Action Needed ls command - define number of columns
Feb
24
reviewed No Action Needed Static IP addressing issue in Ubuntu on BeagleBoneBlack Rev C
Feb
23
comment Sending mail via cron doesn't work
Does the file /tmp/rsync_test.log exist? Is the sendmail binary located in $PATH?
Feb
12
comment Is it possible to remove vi?
In that case, make sure all user-writeable devices are mounted noexec.
Feb
11
comment Is it possible to remove vi?
Is it really the execution of vi you want to prevent? Or rather the ability to look at, or change, certain files? If it is the latter, it might be preferable to attack the problem in a more straightforward way (e.g. file permissions or mount parameters).
Jan
19
awarded  Yearling
Jan
7
comment Output Redirection
This is a bash 4 feature. For older versions of bash, use 2>&1 | instead.
Dec
9
comment Hard Linking Other Users' Files
The owner of the file is stored in the inode, not in the directory entries (hard links), so it is quite natural to count the file against user B's quota.
Nov
19
reviewed No Action Needed Why can't the tape device such as '/dev/st0' use commands like 'cp' to copy contents to it?
Nov
12
answered OR operator in bash scripting
Nov
12
reviewed No Action Needed OR operator in bash scripting
Nov
12
reviewed No Action Needed How to sort on two fields of numbers
Oct
17
comment How do I look up exit codes for applications?
In case this has not become clear from l0b0's answer: these exit codes are not "bash exit codes". They belong entirely to the exiting commands, and they will not change if these commands are called in a different way that does not involve bash.
Aug
26
comment How to attach terminal to detached process?
@rustyx: Untested, but this should work: create a file rather than a pipe, touch /tmp/thefile. Stdout is 1, so call close (1); also, use the correct permissions for writing: call open ("/tmp/thefile", 0400). The echo… is, of course, not needed.