Question

In: Computer Science

Objective: Practice common UNIX commands. Procedure: The following list of Unix commands are given for self-learning....

Objective:

Practice common UNIX commands.

Procedure:

  1. The following list of Unix commands are given for self-learning. Use 'whatis' or 'man' command to find out about each command. Your document should include the description or screen shots of the output from each of the command.

Commands:

  1. df
  2. du
  3. gzip
  4. file
  5. history
  6. wget
  1. Changing access rights:

chmod u+x Dir1.0             adds execute permission for the owner

chmod go-w file1               removes write permission for the group and others

chmod ugo=rw testfile      sets the permissions for everyone to read and write, but not execute

chmod u=rwx newDir       sets the permissions for the owner to read, write, and execute

  1. How to check access rights for files or directories?
    1. Use the command in (a) to find out the access rights for the file named /etc/passwd.
  • Who is the owner of this file?
  • What is the permission for the group on this file?

Solutions

Expert Solution

Answer 1
************

 df - report file system disk space usage

Answer 2
***********

du - estimate file space usage

Answer 3
**************

Gzip reduces the size of the named files using Lempel-Ziv coding
gzip [file-name]

Answer 4
*************9

Answer 5
*************

display typed command history on the terminal

Answer 6
****************

wget is used to download the file from the URL

Answer A
**************

ls -l <filename> or <directory name> will show the rights given to the user.

Answer B
***************

Root is the owner of passwd file

Group has only read rights on the passwd file.

Thanks


Related Solutions

Basic Unix Commands Objective: The objective of this lab is to work with files of UNIX...
Basic Unix Commands Objective: The objective of this lab is to work with files of UNIX file system. Procedure: 1. OpenyourUnixshellandtrythesecommands: Ø Create a new file and add some text in it vcat > filename Ø View a file vcat /etc/passwd vmore /etc/passwd vmore filename Ø Copy file, making file2 vcp file1 file2 Ø Move/rename file1 as file2 vmv file1 file2 Ø Delete file1 as file2 vrm file //Deletefile //Double-checkfirst vrm -i file Ø Counts the lines, words, characters in...
Unix / Linux 31. Given the first two commands, what is the expected output for the...
Unix / Linux 31. Given the first two commands, what is the expected output for the third command? (single quotes) $ echo * a b c $ x=* $ echo '$x' 32. Given the first two commands, what is the expected output for the third command? (Single quotes inside of double quotes) $ echo * a b c $ x=* $ echo "'$x'" 33. Given the first two commands, what is the expected output for the third command? (double quotes...
Unix/Linux Turn in the following commands and any output from the commands. 1) ll to show the original 3 files
Unix/LinuxTurn in the following commands and any output from the commands.1) ll to show the original 3 files2) run the tar command to stuff three files3) ll to show the 'tar archive'4) mkdir newdir to create a new directory to unstuff the 'tar archive'
E13-19 Identifying advantages and disadvantages of a corporation Learning Objective 1 Following is a list of...
E13-19 Identifying advantages and disadvantages of a corporation Learning Objective 1 Following is a list of advantages and disadvantages of the corporate form of business. Identify each quality as either an advantage or a disadvantage. a. Ownership and management are separated. b. Entity has continuous life. c. Transfer of ownership is easy. d. Stockholders’ liability is limited. e. Exposure to double taxation is evident. f. Entity can raise more money than a partnership or sole proprietorship. g. Government regulation is...
QUESTION 1 Match the following LINUX/UNIX commands with what they do. du    whereis users who...
QUESTION 1 Match the following LINUX/UNIX commands with what they do. du    whereis users who am i A. display a compact list of users currently logged in B. locate the binary, source, and manual page files for a command C. summarize disk usage D. who am i currently logged in as on the Linux server. QUESTION 2 What rm command option (flag) would you use to remove a file that begins with a - (hyphen)? -f -p --   ...
Learning Objective: Calculate the total assets, liabilities, or equity from given information. Consider the following information:...
Learning Objective: Calculate the total assets, liabilities, or equity from given information. Consider the following information: Accounts Payable: $4,000 Notes Payable: $10,000 Salaries payable: $1,000 Revenues: $5,000 Accounts Receivable: $5,000 Utilities Expense: $2,000 Cash: $5,000 Office Supplies: $1,000 Equipment: $20,000 Accumulated Depreciation Equipment: $5,000 Unearned Revenue: $2,000 Equity: $22,000 Salaries Expense: $1,000 From the above set of data, what is the total for assets, liabilities, and equity? a) Total Assets: $26,000    Total Liabilities: $17,000 Total Equity: $9,000 b) Total...
Objective: To provide practice (or a refresher) with writing simple MATLAB codes that employ common tools...
Objective: To provide practice (or a refresher) with writing simple MATLAB codes that employ common tools such as loops, functions, arrays, and MATLAB plotting tools. P T 1: Functions and loops The goal of this exercise is to plot the function r(theta) = theta where theta is a phase angle and r(theta) is the radius at that angle, over the range - 3pi/2 =< theta =< 3pi/2 . It is often useful to define a function to handle calculations that...
Objective: To provide practice (or a refresher) with writing simple MATLAB codes that employ common tools...
Objective: To provide practice (or a refresher) with writing simple MATLAB codes that employ common tools such as loops, functions, arrays, and MATLAB plotting tools. P T 1: Functions and loops The goal of this exercise is to plot the function r(theta) = theta where theta is a phase angle and r(theta) is the radius at that angle, over the range - 3pi/2 =< theta =< 3pi/2 . It is often useful to define a function to handle calculations that...
Consider the list of animals and their attributes given below cell (CELL_Q3_INPUT). The objective is to...
Consider the list of animals and their attributes given below cell (CELL_Q3_INPUT). The objective is to obtain the print outs in the subsequent cell (CELL_Q3_OUTPUT). Note that the attributes of each animal are 'name', 'species', 'color', and 'age'. You must use collections.namedtuple to add readable attribute references, which then will be used to generate the desired output in CELL_Q3_OUTPUT. # CELL_Q3_INPUT lassie = ('Lassie', 'dog', 'black', 12) buddy = ('Buddy', 'pupper', 'red', 0.5)   astro = ('Astro', 'doggo', 'grey', 15) mrpb...
List and briefly describe some common functions(features) found in UNIX e-mail systems. i.e. capability of using...
List and briefly describe some common functions(features) found in UNIX e-mail systems. i.e. capability of using Bcc, etc..
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT