Originally posted by zameer_india
could any body explain me what happens with the following commands ......
echo 0 > / proc/xxxx
echo 1 > / proc/yyyy
echo 2 > / proc/zzzz
echo 3 > / proc/aaaa
form the above four lines i understood that
"echo" is for " Display Purpose/OP"
0,1,2,3.... is this are IRQ Numbers ?
what is the function of " > "?
I think it is silly one for U ... not for me.... any help would be appreciate....
thnx in Advance...
zameer ahmed syed
echoing can be used for a lot of things, but basically what the above is doing:
echo 1 > /proc/whatever
Is sending the 1 to that file, to replace anything in it. Usually 1's turn things on, 0 turns them off.
The > is the thing to note.
If you were to:
echo 1 /proc/whatever
You'd get a 1 on your screen followed probably by a command not found or something similar, and the 1 would not be sent to /proc/whatever. The > tells echo not to send it to stdout (the terminal in this case) but rather to a file.