.
: , , . . Linux - , . , , , . "" - . , . -, , , - . -, , , , . - ( ), hexdump -, ASCII-, strings, , :
7.1. hexdump
[student@localhost root]$ hexdump -C /bin/cat | less...[student @localhost root]$ strings -n3 /bin/cat | less7.1 hexdump "-C" , ( ). strings "-n".
Linux "", . ( 0) , . , . ( 1) - , . , . , ( 2) , . , , , , , 3.
- , . , 0. . - (0), (1) (2) - .
, - , , . , . , - /dev/null. , , :
|
|
7.2. /dev/null
[student@localhost root]$ info cat > cat.info 2> /dev/null, /dev/null.
.
, - . bash , . Linux .
bash "|". , , , "" , . (less).
, . "cmd1 | cmd2 |... | cmdN".
shell , , - . , ( - "pipe"). : , . , shell ( - ), , - . , .
(pipe) - ( ), , , , .
, , , - - . , . Linux : , - "" , - , - . Linux , . - cat: , "" , .
, , : - , , . , -.
|
|
Linux , . who, cat, ls, pwd, cp, chmod, id, sort . - : , , , -, . , , , /, .