Вы находитесь на странице: 1из 12

1.

[user@localhost user]$ ls -im file-a file-b file-c


127705 file-a 127705 file-b 3621 file-c
?
file-a file-b
file-b file-c
file-a, file-b file-c

2.



( )

( )

( , ) ,
-

3.

4.


,
, #!

5.

6.

?

,

su sudo
,
umask
,
Linux-

7.

textfile : head -3 <


textfile > textfile ?
3 textfile
3 textfile
textfile + 3 textfile
( )

8.

textfile : sort < textfile


| sort -r > textfile ( ,
)?



9.


>?


, ,
(, , cd export)

10. 1,
2
> 2 < 1
< 1 > 2

2>&1 1 > 2
11. textfile : sort < textfile
>> textfile ?
textfile ( )
textfile,
textfile + textfile
( )
12.




13. cut



,

14. :
, ,

, , ,

, -
,
15. grep.info : info grep 2>&1
> grep.info ?
info grep
info
grep

( )
16. bash , cmd , ,
?
alias
alias cmd
type cmd

17. shell *r*[cC]
bash.rc .bashrc BarC rrrc
tric rcC] r.C mail.rc
oroc ir/ac arc r@C
*rcC CrooC crc or..c
18.

,

19.


,



20. echo 1?
0
1


21.
, /etc/rc.d
/etc/rc.d/init.d
,
/etc/rc.d/rc*.d

22.


,
,
,

(
),
23.
/etc/rc.d/init.d
/etc/rc.d/init.d /etc/rc.d/rc*.d
/etc/rc.d/init.d, /etc/rc.d/rc*.d

/etc/rc.d, /etc/rc.d/init.d
/etc/rc.d/rc*.d
24. init 3
init PID 3
3,
,
3,
, ,
, 3
3,

25. Linux



,

,

26.
halt
kill
shutdown
init
27. Linux ,
?

,
, ,
,
,

28.
,
,
, ,
, ,
,
29. shadow?
,
,

,
shadow
30. cron?

,

, -
,

,

31. anacron?


,

, -
,

,

32. Linux, ,




33. /etc
Linux


, FHS
/lib, /var, /bin . .
34. etc/crontab /bin/boo 13-
, ?
12 00 13 * 5 root /bin/boo
* 12 13 * 5 root /bin/boo
0 12 13 * 5 root /bin/boo
cron
35. ,
?
/etc/passwd
/etc/passwd, /etc/group
/etc/group
/etc/shadow
36.



37.



,
,
38.

,
,

CD DVD
39. rpm- ,

,
,


40.
, ,

,

, ,
,



41.
, ,

,

, ,
,



42. :



,
43. ,

,
, ,


,
,

44. TCP/IP?
, , ,
, , ,
, , ,

,
45. , IP- 192.168.0.13
255.255.255.0?
192.168.0.0
192.168.1.0/16
192.168.0.0/16
192.168.0.0/24
46. /etc/hosts

DNS,
Internet


IP-
47. ,
, ?
/


,

48. ?
IP-
IP-


49. ifconfig
ethernet-
IP-

MAC-,

50. , IP- 192.168.1.13
255.255.0.0?
192.168.1.0
192.168.1.0/16
192.168.0.0/16
192.168.0.0/24
51. /etc/services

DNS,
Internet


IP-
52. Secure Socket Layer (SSL) ?
,


(, )
, ,
,
,
, SSL
53. route :

IP-
, IP-

54.
- ?
HTTP
SMTP

TELNET
FTP
55. SMTP, POP3 IMAP4
, SMTP
, POP3, IMAP4,

,
SMTP- , POP3 IMAP4 ,
, ,
POP3 , IMAP4,

SMTP POP3
, IMAP4
SMTP
, POP3 IMAP4 , IMAP4,
POP3,

56.
SSL?
HTTP
SMTP
IMAP
FTP
57. ifconfig?




58.
(NAT)?
TCP UDP-
, ,
.
, ,
IP- .
, ,
IP- .
,
, IP-
59.
ifconfig
route
ifcfg-eth0
/etc/resolv.conf

60. FTP HTTP ,


HTTP , FTP

HTTP TCP-, FTP

HTTP ,
, FTP
HTTP
(CGI), FTP
61. Linux :
, Norton Commander/FAR Manager
, Explorer


62.POSIX
UNIX-

, UNIX-

,

63.
Which command permits to know how many connections (result in
digits only) are currently being used by user "root"?
A. who|grep root | wc -l
B. who>grep root | wc -l
C. who|grep root>wc -l
D. who|grep >/dev/null|wc -l
E. grep root|who|wc -l
F. wc l|grep root|who
G. wc l<grep root<who
64.
How do you print the first 15 lines of all files ending by
".txt"
A. print 15 .txt
B. cat *.txt length=15
C. head -15 *.txt
65.
Count the files you own in all your directories.
A. ls -lR | grep myusername | wc -l
B. ls -a | cnt *
C. ls -n ~myusername
66.
How do you uncompress and untar an archive called
"lot_of_thing.tar.Z"
A. tar lot_of_thing.tar.Z | decomp
B. zcat lot_of_thing.tar.Z | tar xvf C. tar xvf lot_of_thing.tar.Z

67.
Output of the following: $ v= 'ls' $ echo $v
A. list all files
B. ls
C. Erro
68.
How will you assign the value of variable var2 to var1?
A. varl=var2
B. $varl=$var2
C. varl=$var2
D. $varl=var2
69.
How can you append the output of a command to a file?
A. command > file
B. command < file
C. command >> file
D. command <> file
E. command << file

70.
The wc command will report all misspelled words.
A. True
B. False
71.

Which diagram results from folding the diagram on the left?

Вам также может понравиться