日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux FAQ(zz)

發布時間:2025/3/14 linux 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux FAQ(zz) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.Which is the command used to find the available shells in your Operating System Linux ?

Ans : $echo $shell

2.Which is the command used to view the environment variables?

Ans: printenv

3. How do you recall last command from the history list in Cshell ?

Ans: !!

4. How do you print the current job in Cshell ?

Ans: %%

5. Which is the command used to find the no of bytes in the file shell ?

Ans: du file name

6. Which is the command used to edits the input stream, line by line?

Ans: sed

7. What is the difference between finger and who?

Ans: Finger was a way to get information about a user from another system Who is used to find who all are using current machine.

8. Which are the Protocols used to access remote machines?

Ans: SSH ,RSH ,FTP

9. Which is the basic command while transfer a file from your home to the other user?

Ans: FTP

10. Which is command used to create a file Linus of zero bytes?

Ans: touch

11. Which is the command used to select parts of a line?

Ans: cut filename

12. How do you Find the free space of the hard disk in your home?

Ans: df filename

13. f a file A contains 200 bytes of data and file B contains 150 bytes of data, How do you say A is 50 bytes more than B?

Ans: cmp file A file B

14. Which is the command used to find the number of files in directory?

Ans: ls | wc -l

15. How will you change your shell?

Ans: tcsh

16. How will you change file permissions?

Ans: using chmod

17. Difference between find and locate?

Ans: Locate uses an internal database to look up indexed files. This database need to be updated using a command “updatedb”.
Find does only a normal search.

18. How will you search for a pattern (String) in a file?

Ans: grep “string” filename

19. How will you kill a process? Give one example?

Ans: 1. ps = It will list all processes on that shells

?????????? 2. kill process ID 20. How will you remove a file interactively?

Ans: rm -i filename

21. Can we remove a nonempty directory? If yes how?

Ans: rm -rf dirname

22. What do you mean by “su”? What is the difference between “su” and “su -“?

Ans:su means switch user it changes the shell we to key a exit to come back to previous shell.

23. How will you delete 50 lines in vi?

Ans:50 dd in escape mode.

24. How will you search for a pattern in vi?

Ans: ?pattern

25. How will you perform cut and paste in vi?

Ans: dd for cut p for paste

26. How to list out the files in a directory according to there size?

Ans: ls -S

27. How to insert a word as firstword for all lines in the text?

Ans : sed -i s/word/firstword/

28. Which of the following characters is used to signify the beginning of a line?
A. % ????B. $ ????C. ^ ????D. ~

Ans : C

29. If you want to find every line in a file that contains a number. Which of the following regular expressions will accomplish this?
A. -n ????B. "0 1 2 3 4 5 6 7 8 9" ????C. [0-9] ????D. [^0-9]

Ans : C

30.If you want to find all matches for two distinctly different values. Which character is used to signify that you want to match two values?
A. back slash (\) ????B. forward slash (/) ????C. pipe (|) ????D. ampersand (&)

Ans : C

31. Which of the following should be used to find "Sam" and "Samantha" in a file?
A. Sam(antha)* ????B. Sam[antaha] ????C. Sam|antha ????D. Sam\(antha\)\?

Ans : B

32. Which of the following characters is used to signify the end of a line?
A. % ????B. $ ????C. ^ ????D. ~

Ans : B

33. What set of characters will be matched if the expression is [1-9A-D]?
A. 123456789ABCDabcd ????B. 123456789ABCD ????C. 19ADad ????D. 19AD

Ans : B

34. Which of the following regular expressions should be used to find lines that do not contain numbers?
A. -n ????B. "\0 \1 \2 \3 \4 \5 \6 \7 \8 \9" ????C. [0-9] ????D. [^0-9]

Ans : D

35. Which of the following can be checked to see how many positional parameters were used to call a script?
A. $# ????B. $$ ????C. $! ????D. $?

Ans : D

36. Which switch should be used with grep to print all lines in a file that do not match the search criteria given?
A. -i ????B. -v ????C. -c ????D. -n

Ans : B

37. Which of the following would be the result of the command echo 1{2,3,4}5 (choose all that apply)?
A. 15 ????B. 125 135 145 ????C. 12345 ????D.1{2,3,4}5

Ans : B

38. Which switch should be used with grep to ignore case as you look for matches in a file?
A. -i ????B. -v ????C. -c ????D. -n

Ans : A

39. Which switch should be used with grep to count all lines in a file that match the search criteria?
A. -i ????B. -v ????C. -c ????D. -n

Ans : C

40. Which of the following utilities processes most quickly?
A. grep B. egrep C. fgrep

Ans : The fgrep utility does not have the same regular expression set as the other two, and is thus able to execute the fastest hence ans is C.

41. Which of the following regular expressions can be used to find all blank lines in a file?
A."" ????B. ^$ ????C. ^" "$ ????D. [ ]

Ans : B

42. If the value of ALT is set to the string "MPC", what will the command echo '$ALT' return?
A. $MPC ????B. MPC ????C. ALT ????D. $ALT

Ans : D

43. Which is the command used to create chain of directories?

Ans : mkdir -p dir1/dir2/dir3

44. Which is the command used to see two files at a time?

Ans : vim -o filename1 filename2

45. What is the usage of top command?

Ans : It will list all the currently running processes on CPU.

46. How we can use a sed command as a head command?

Ans : sed “5q” filename

47. What is the result of “%s/Kacper/Kacpertech/g “?

Ans : Kacper will get replaced my another string Kacpertech in all the lines of the file.

48. Which of the following interprets your actions when typing at the command line for the operating system?
a. Utility ????b. Application ????c. Shell ????d. Command

Ans : C

49. Write a syntax for foreach loop in shell script?

Ans : foreach variable name (some list)
command1
command2
.........
end

50. How we can set the date and time for the files?

Ans : using touch operator

轉載于:https://www.cnblogs.com/zeushuang/p/3142889.html

總結

以上是生活随笔為你收集整理的linux FAQ(zz)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 国内自拍小视频 | 国 产 黄 色 大 片 | 91久久精品一区二区别 | 诱人的乳峰奶水hd | 91av免费在线观看 | 精品人妻在线播放 | 日本黄色播放器 | 国产日韩欧美精品一区 | 日韩精品啪啪 | 国产精品对白刺激久久久 | 91色漫 | 精品少妇无码av无码专区 | 扩阴视频 | 香蕉久久夜色 | 国产亚洲视频在线观看 | 亚洲欧美中文字幕5发布 | 国产精品偷伦视频免费看 | 久久国产精品久久久久 | ass极品国模人体欣赏 | 婷婷久 | 精品免费av | 少妇精品导航 | 国产三级免费观看 | h片在线看 | 日本黄色免费看 | 久久久国产免费 | 91精品人妻一区二区三区蜜桃2 | 一区二区三区丝袜 | 国产免费一区二区三区四区五区 | 九九热精品免费视频 | 色视频一区| 国产成人av在线播放 | 中文字幕不卡一区 | 免费看的av网站 | 国模小丫大尺度啪啪人体 | 成年人免费黄色片 | 欧美日韩精品在线 | 国产情侣在线播放 | 欧美1| 夜夜操免费视频 | 久久久久久久美女 | 国产成人自拍视频在线观看 | 国模私拍在线观看 | 国产乱xxⅹxx国语对白 | 亚洲欧美日韩久久精品 | 我和岳m愉情xxxⅹ视频 | 欧美xxxx黑人又粗又长密月 | 亚洲国产日韩一区无码精品久久久 | 免费 成 人 黄 色 | 久久永久免费 | 91插插插插插插插插 | 99热6这里只有精品 三级av在线免费观看 | 人人搞人人| 国产一二区在线观看 | 精品欧美一区二区精品少妇 | 91丨九色丨黑人外教 | 亚洲少妇18p | 制服中文字幕 | 中国一极毛片 | www.在线观看av | www久久久天天com | 欧美另类亚洲 | 国产高清一区在线 | 天天干精品 | 91水蜜桃| 国产精品成人久久电影 | 偷拍亚洲精品 | 国产毛片a | 全部毛片永久免费看 | 免费观看av网址 | 内地级a艳片高清免费播放 91在线精品一区二区 | 欧美一级黄视频 | 黄色片视频免费观看 | 国产一级二级三级精品 | 欧美三级午夜理伦三级小说 | 99青青草| 精品久久一二三区 | 伊人激情综合 | 日本免费爱爱视频 | 色99在线 | 亚洲成人自拍视频 | 欧美va天堂| 色婷婷网| 久久人妻无码aⅴ毛片a片app | 精品视频在线一区二区 | 九九热在线精品视频 | 毛片av在线观看 | 国内精品毛片 | 黄色三级av| 伊人影院在线观看视频 | 精品一区二区三区在线观看 | 欧美亚洲综合另类 | 国产欧美日韩视频 | wwwxx欧美 | 日本熟妇色xxxxx日本免费看 | 日韩激情av | 国产一级性生活 | 国产特级片 | 精品视频在线免费看 |