Quote:
Originally Posted by davide123
ok tried that-
cp is aliased to 'cp -i'
what does that mean?
|
It means that: in your bash_profile or /etc/profile config file (or possible even by a symlink somewhere) an ALIAS is configured. An ALIAS is a way of creating a command, in a sense. Have a look at your shell's MAN PAGE to read about aliases.
Quote:
what does "2&1" actually mean?
|
There are two 'channels' of output of text, from a program; stdout, and stderr. stdout is the "standard output" where normal output shows up. stderr is "standard error" where errors are generated.
stdout is signified by &1, and stderr is signified by &2. By saying 2>&1, we are telling the shell to redirect stderr into stdout.
Again, your shell's MAN PAGE explains shell redirection.
Quote:
what i want to do is have a file after my script runs to show me the succesful completion and errors from each command. using the above command creates a file with all output from the command being executed
thanks for all the help
|
Not sure I follow the last part there, but try using `cat` and pipe it into `less` to view the log file after the copying is done:
shell#
cat logfile | less
Sasha