ls [opt]
-a list hidden files
-d list the name of the current directory
-F show directories with a trailing '/'
executable files with a trailing '*'
-l long listing giving details about files and directories
-R list all subdirectories encountered
-t sort by time modified instead of name
Examples:
Display one file per line
$ ls -1
bin
etc
home
lib
A Language is not worth knowing unless it teaches you to think differently.
Saturday, February 9, 2013
Shell Types
- The Bourne (or standard) shell, the most compact shell but also the simplest.
- The Korn shell, a superset of the Bourne shell that lets you edit the command line.
- The C shell, which uses C syntax and has many conveniences.
Most systems have more than one shell,
The /etc/passwd file determines which shell takes
If the program Your shell will be the:
shell name is:
/bin/sh Bourne shell
/bin/rsh Restricted Bourne shell
/bin/jsh Bourne shell, including job control
/bin/ksh Korn shell
/bin/rksh Restricted Korn shell
/bin/csh C shell
change from the Bourne shell to the C shell, type: $ exec csh
What is Shell Script ? Why want to create Shell Script?
- A shell script is a text file with Unix commands in it.
- Shell scripts usually begin with a #! and a shell name (complete path-name of shell).
- Path-name of shell be found using the which command.
- The shell name is the shell that will execute this script.
- If no shell is specified in the script file, the default is chosen to be the currently executing shell.
E.g:
#!/bin/bash
echo “Hello World”;
exit 0;
Here
#!/bin/bash - shell name , the program will execute this environment
Why want to write shell script?
To avoid repetition:
- If you do a sequence of steps with standard Unix commands over and over, why not do it all with just one command?
- Or in other words, store all these commands in a file and execute them one by one.
Subscribe to:
Posts (Atom)
Price List Query for Item
SELECT qph.list_header_id, qph.name, qph.description, qphh.start_date_active, qphh.currency_code, q...
-
1. To download Ldt file for a Concurent Program FNDLOAD [username]/[password] O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct file_nam...
-
Here the article will describe about how to register WebADI to Responsibility menu Go to System Administrator --> Security --> Respo...
-
using the below query can check the invoice status. SELECT DECODE(AP_INVOICES_UTILITY_PKG.GET_APPROVAL_STATUS(AIA.INVOICE_...