stdin, stderr, redirection and logs
Is there a difference between those two lines ?
Is there a difference between those two lines ?
Suppose I have the following trivial example in my history:
As far as I understand, the usual way to add a path to the PATH environment variable is by concatenating paths separated by the : character.
I have the following string: /tmp/test/folder1/test.txt
For config auditing reasons, I want to be able to search my ext3 filesystem for files which have the immutable attribute set (via chattr +i). I can’t find any options for find or similar that do this. At this point, I’m afraid I’ll have to write my own script to parse lsattr output for each directory. Is there a standard utility that provides a better way?
I was wondering if there’s a way to find out the default shell of the current user within a shell script?
Since recently Debian has changed the default behavior for dmesg and I cannot use it simply from my local user.
I am using Ubuntu 12.04.2. I am trying to use “trap” command to capture abnormal or error in my shell script but I am also trying to manually trigger “Error” exit.
What is this file anyway? Documentation makes no mention of it. And it’s not supposed to be run automatically (version 4.3, 2 February 2014):