Question

In: Computer Science

Choose 10 commands from the list to study in detail for this assignment. For each command,...

Choose 10 commands from the list to study in detail for this assignment. For each command, you need to provide a short description of the main functionality, and an example run (including output) of the command.

Notes

  •  You need to choose at least one command from each category.

  •  Be brief. You do not need to write a lot.

  •  Although you are only required to document the usages of 10 commands in this assignment,

    you are expected to know all the commands for this course (in particular, exams).

    Process management and status 1. at

    2. bg
    3. crontab 4. fg
    5. kill
    6. nice
    7. nohup 8. ps
    9. sudo 10. suspend 11. time
    12. top

    File and directory 13. cat

    14. chgrp 15. chmod 16. chown 17. cd

    18. cp 19. dd 20. diff 21. dirs 22. file 23. find 24. grep 25. head 26. less

27. ln
28. ls
29. mkdir 30. mv 31. popd 32. pushd 33. pwd 34. size 35. tail 36. touch 37. umask 38. wc

User management and information 39. id

40. groups
41. limit (or ulimit) 42. makepasswd 43. passwd
44. su

Networking 45. arp 46. dig

47. ifconfig 48. hostname 49. nc
50. netstat 51. nslookup 52. ping
53. route
54. ssh
55. traceroute 56. wget

Programming tools 57. ddd

58. gdb 59. make 60. nm
61. strace 62. strings

Machine and system status
63. /proc/cpuinfo (this and the next are not commands, but files. You can “cat” their contents)64. /proc/meminfo
65. df
66. du
67. free
68. sysinfo
69. uptime
70. uname
71. vmstat

Other utilities 72. bc
73. cal

74. clear 75. crypt 76. cut 77. date 78. env 79. ispell 80. sort 81. tar 82. tr

83. uniq 84. xargs

Solutions

Expert Solution

1. kill:

The killcommand in unix/linux is used to send a signal to a process. If no message is specified, TERM signal is sent and the process is terminated.

Usage: kill pid where pid is the process ID.

Output: None

2. cat:

The cat command is short for concatenate. This is one of the powerful linux file operation command which is used to create single or multiple files, view contain of file, concatenate files and redirect output in terminal or files.

Usage: cat filename

Output: The contents of the file

3. ls:

ls is a command which lists the directory files and directories.

Usage: ls [options] [file|dir]

Output: List of files and directories according to the options given.

4. su:

The su command is an acronym for "substitute user". It makes possible for changing the login session's owner.

Usage: su [options] [commands] [-] [username]

Output: Changes the owner.

5. pwd:

The pwd command is used to print the full system path of the current working directory.

Usage: pwd

Output: Full system path of the current working directory.

6. chmod:

chmod command is used to set permissions of files and directories.

Usage: chmod [options] [permissions] [file name]

The permissions can be given in terms of rwx or numbers such as 777/755

Output: File with required permissions

7. ifconfig:

ifconfig(interface configuration) command is used to configure the kernel-resident network interfaces.

Usage: ifconfig [options] [interface]

Output: List of network interfaces accordingly with options.

8. date:

This command shows the current system time.

Usage: date

Output: Tue Sep 17 21:27:49 CT 2019

9. env:

This command is used to run a program in a different modified environment

Usage: env [option]... [-] [name=value]... [command[arg]]

Output: When only env is used, it shows all the environment variables.

10. uname:

The uname command displays system information.

Usage: uname [options]

Output: Displays system information


Related Solutions

a) Observe the following Linux commands and work out what each command does: 1) $ ls...
a) Observe the following Linux commands and work out what each command does: 1) $ ls –al 2) $ /etc/profile 3) $ chmod 200 final_assignment.txt b) Consider a scenario where Bob has downloaded his messages to the local machine with an access of POP3, he can create mail folders and move the downloaded messages into the folders. Bob can then delete messages, move messages across folders, and search for messages (by sender name or subject). But this paradigm—namely, folders and...
To do this assignment, choose a statistical model from the list below and come up with...
To do this assignment, choose a statistical model from the list below and come up with a hypothetical study related to your research interests that could be conducted using the model. Assignment must include the following: Brief background information on your topic, the research question and hypothesis. State the population of interest and the sample. State the IV including levels and the DV. Be specific about what your variables are. Review “operational definitions” Detail what the procedure would be for...
Life Case study ASsignment Choose an adult from your own life. A fictional character from a...
Life Case study ASsignment Choose an adult from your own life. A fictional character from a book, television show or movie. You will analyze one concept within each of the three domains. Physical development (the Adolescent brain ) Cognitive development (critical thinking) Psychosocial development ( theory of love) Please write an essay
choose 10 guides from the list of GUIDE TO SPEECH AND ACTION below Give an example...
choose 10 guides from the list of GUIDE TO SPEECH AND ACTION below Give an example of how YOU would use 10 of the 15 guides CORRECTLY. Make sure you state the guide and provide examples of 10 different guides . select 10 guides and give examples of how you would use them correctly with preschool children. a. State the guide (type it out). b. Briefly describe a situation illustrating how you have or would have used the guide correctly....
How this command used for and provide examples for each one. Commands: 1-file 2-find 3-pwd 4-ln...
How this command used for and provide examples for each one. Commands: 1-file 2-find 3-pwd 4-ln 5-stat 6- cmp, comm, and diff 7-md5sum 8-du 9-gzip 10-gunzip 11-bzip2, and bunzip 12-cpio 13-tar 14-wc 15-vi editor
Choose the proper statistical technique to use for each scenario from the list below. A. One...
Choose the proper statistical technique to use for each scenario from the list below. A. One sample test for a mean B. One sample test for a proportion C. Two sample test for means- independent D. Two sample test for means – paired E. Two sample test for proportions F. Chi square test of independence G. Chi square test for homogeneity of proportions H. One Way Analysis of Variance I. Correlation J. Simple regression K. Multiple regression L. Time series...
For this assignment, describe in detail (two to three sentences each) how each of the following...
For this assignment, describe in detail (two to three sentences each) how each of the following parts of the brain are involved during your evening of eating pizza, socializing, and playing cards. Broca's area Motor cortex Auditory cortex Cerebrum
You and your friend each choose 7 songs at random from a list of 20 distinct...
You and your friend each choose 7 songs at random from a list of 20 distinct songs in a playlist. What is the probability that exactly 5 out of the 7 songs you picked match your friend’s?
Below is a list of pairs of compounds. Choose the pairs from the list that would...
Below is a list of pairs of compounds. Choose the pairs from the list that would NOT form a precipitate if mixed together. a. KCl and Na3PO4 b. Ca(NO3)2 and MgSO4 c. FeCl3 and LiOH d. CuSO4 and (NH4)3PO4 e. sodium nitrate and calcium chloride f. sodium sulfate and barium nitrate g. zinc nitrate and potassium sulfate h. lead(II) nitrate and sodium carbonate i. potassium phosphate and cobalt(II) chloride j. copper(I) nitrate and magnesium chloride
The awk commands to print the first and third words (with a space between) from each...
The awk commands to print the first and third words (with a space between) from each line of the input that has the substring 'cat' in the second word (assume all lines have at least three words). Note, words are fields in this case. Your output should be a copy of each input line with the substring 'cat' in the second word and also, with just the first and third words printed. A series of comments that fully describes your...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT