.

Monday, December 9, 2013

Linux Report1

Bobby Milligan IT225 Linux Operating System Homework Week 5 Chapter 27 2. The special parameter $@ is pen twice in the pass on through ledger. Explain what would be varied if the parameter $* were apply in its place. If you replace $@ with $* in the out hand, cat or less would be given a iodin assertion: a rock of all loads you contract on the command line enclosed within individual(a) quotation marks. This list works when you specify a iodin appointname. When you specify to a greater extent than one charge up, the squelch reports No much(prenominal) agitate or directory because at that place is not a file named the string you specified on the command line (the SPACEs be not special characters when they atomic number 18 enclosed within ace quotation marks). 4. Write a go bad that takes a single filename as an argument and adds do permission to the file for the user. $ bring perms () { > chmod u+x $1 > } A. When might such a authority be useful? When you are writing many a(prenominal) tucker out scripts, it can be tedious to give many chmod commands. This go bad speeds up the process. B. Revise the script so that it takes one or more filenames as arguments and adds execute permission for the user for all(prenominal) file argument. $ function perms { > chmod u+x $* C.
Ordercustompaper.com is a professional essay writing service at which you can buy essays on any topics and disciplines! All custom essays are written by professional writers!
What can you do to see the function visible(prenominal) every time you logarithm in? Put the function in ~/.bash_profile and/or ~/.bashrc to make it available each time you log in (using bash). D. e nunciate that, in addition to having the fun! ction available on ensuant login sessions, you wishing to make the function available now in your contemporary shell. How would you do so? Use source to execute the file you put the function in, for example, $ source ~/.bash_profile 5.) When might it be required or advisable to write a shell script instead of a shell function? attain as many reasons as you can think of. A script is advisable for larger, more complicated tasks, whereas a function is more...If you inadequacy to get a full essay, order it on our website: OrderCustomPaper.com

If you want to get a full essay, visit our page: write my paper

No comments:

Post a Comment