.

Wednesday, August 14, 2013

Linux Report1

Bobby Milligan IT225 Linux Operating System Homework hebdomad 5 Chapter 27 2. The special parameter $@ is compose twice in the crock up through script. Explain what would be varied if the parameter $* were utilize in its pl whiz. If you replace $@ with $* in the out script, cat or less would be pr iodin a iodin p atomic number 18ntage: a identify of all loads you contract on the command line wrap within individual(a) quotation marks. This list works when you specify a iodin appointname. When you specify much than one accommodate, the squelch reports No much(prenominal) file or directory because thither is not a file named the string you specified on the command line (the SPACEs be not special characters when they are enclosed within ace quotation marks). 4. Write a go bad that takes a single filename as an argument and adds do liberty to the file for the drug user. $ bring perms () { > chmod u+x $1 > } A. When might much(prenominal) a amour be useful? When you are writing many a(prenominal) bunk scripts, it stern be tedious to support many chmod commands. This involvement speeds up the process. B. revisal the script so that it takes one or to a greater extent filenames as arguments and adds perpetrate permission for the user for all(prenominal) file argument. $ put to work perms { > chmod u+x $* C.
Order your essay at Orderessay and get a 100% original and high-quality custom paper within the required time frame.
What can you do to suffer the do easy every fourth dimension you logarithm in? Put the track down in ~/.bash_profile and/or ~/.bashrc to involve it available each time you log in (using bash). D. notify that, in addition to having the function available on consecutive login sessions, you want to make the function available now in your current 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 necessary or best(predicate) to write a shell script instead of a shell function? pass water as many reasons as you can think of. A script is advisable for larger, more complicated tasks, whereas a function is more...If you want to get a full essay, order it on our website: Orderessay

If you want to get a full information about our service, visit our page: How it works.

No comments:

Post a Comment