% and & meanings
hello,
i have 2 questions .. i've seen that for bringing a program to the foreground, one should write simply fg 1 (1 is the number of the job) ... but for sending a job to the background, one should write fg %1 .. why ? what does % means here?
my second questions, is what does & mean, when you write: 1>&2 (I'm trying that the stdout and sterr go to the same place) ...
when i want the stdout to go to a file, a simply write 1> file , the same with the stderr, so what does it mean the & here? (1>%2) ?
thanks,
Eduardo Lidanski
|