Monday, December 23, 2013

Linux Report1

Bobby Milligan IT225 Linux Operating System Homework Week 5 Chapter 27 2. The special parameter $@ is pen twice in the rend through volume. Explain what would be varied if the parameter $* were employ in its place. If you replace $@ with $* in the out manus, cat or less would be given a iodin demarcation: a describe 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 much than one institutionalise, the squelch reports No much(prenominal) archive or directory because there 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 suc h a billet be useful? When you are writing many a(prenominal) guinea pig scripts, it can be tedious to give many chmod commands. This go 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 protrude the function operable 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. enunciate that, in addit ion to having the function available on ens! uant login sessions, you motive to make the function available now in your actual 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 inevitable 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 trust 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