answersLogoWhite

0

  1. Delete files in all mounted file systems.
  2. Wipe all attached storage devices.
  3. Use serial port device provided by the kernel to instruct your home-constructed coffee machine to make you one with milk and no sugar.
User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you write a script which lists the 10 Shell System variables?

You don't need a shell script to do that. Since you don't say what 10 shell variables you want, you can list them all by using the 'set' command to list all known in-use shell variables in the current session.


Can you Write a script shell that displays the list of users along with their number of processes?

Just use the 'PS' command with the option to list processes by user: PS -u john -f would list out the processes running as user 'john'. A shell script to do that could be: #!/bin/ksh for i in $(users) do PS -u $i -f done


Write a shell program called whos to display a sorted list of the logged in usersJust display the user names and no other information?

The 'users' command should do that; you don't need to write a shell script to get that information in that format.


Write a shell script to display the smallest file name in respect of the string length among the list of files available in the current directory?

ls-lS | tail-1


How do you create a script file in Unix?

A shell script starts with the definition of the interpreter to use. Usually when one says ``shell script'', one means bash script. So a good first line would be #!/bin/bash This says that the program located in the filesystem at /bin/bash should be executed with this script as its input. With a bash script, you can simply start typing a list of commands. Furthermore it is possible to use logic and control structures like if, else, for, while, etc etc. See http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html for a good starting guide.


Write a shell script that prints a list of every unique word in a file in reverse alphabetical order?

cat FILE | awk 'gsub(/ /,"\n") gsub("\n","\n") {print}' | sort -ur


Write a shell script that prints a list of every unique word in a file in alphabetical order line by line?

#!/bin/sh sed -e 's/\W\+/\n/g' | sort -u


Write a shell script to sort all the files in the current directory in an alphabetical order and direct the sorted list to a new file?

The following simple shell command lists the contents of a directory (verbose), and redirects the output to 'newfile.txt': ls -l > newfile.txt See related links.


In the beginning of a script the reader will find a list of?

characters.


What are the common shell variables in unix?

The common shell variables differ according to which shell you are talking about. In general, they control the shell environment behavior, terminal behavior, and other external things. You can get a list per shell by using the 'man' command with the shell name to list out the common variables used in that shell environment.


What shouldn't you do when writing a script?

This list is endless, but may include this advice: don't become so invested in using a script to tell your story that your 'life' depends on it being sold/ produced/ becoming a major tent-pole summer movie blockbuster that makes millions. You will be disappointed.


What is operation signature in UML?

Syntax for UML operation is: operation ::= [ visibility ] signature [ oper-properties ] Signature of the operation has optional parameter list and return specification. signature ::= name '(' [ parameter-list ] ')' [ return-spec ] Name is the name of the operation. Parameter-list is a list of parameters of the operation in the following format: parameter-list ::= parameter [ ',' parameter ]* parameter ::= [ direction ] parm-name ':' type-expression [ '[' multiplicity ']' ] [ '=' default ] [ parm-properties ] See details and examples in the provided link.