Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

   

 

  Oracle Tips by Burleson

Redirection of Standard Input & Output

In Linux, the standard input device is the keyboard and the standard output device is the display screen. Linux does, however, allow the redirection of both standard input and output to files, for example. In other words, Linux accepts input from files and can direct output to files.

Three symbols are used to indicate redirection to Linux. The symbols are:

Symbol
Meaning


<
Accept input from a file instead of the keyboard

>
Send output to a file instead of the display device

>>
Append output to the end of the indicated file. For example keep a log file.

Redirecting command output to a file

$ ls -alt > dir.lst

$ cat dir.lst

total 68

drwx------ 4 tclark tclark 4096 Feb 24 23:27 .

-rw-rw-r-- 1 tclark tclark 0 Feb 24 23:27 dir.lst

-rw------- 1 tclark tclark 11629 Feb 24 21:24 .bash_history

-rwxrwxr-x 1 tclark tclark 325 Feb 24 21:17 mylogin

-rw------- 1 tclark tclark 4151 Feb 24 21:17 .viminfo

-rwxrwxr-x 1 tclark tclark 208 Feb 19 22:52 test.bsh

drwxrwxr-x 2 tclark authors 4096 Feb 3 23:11 examples

-rw-rw-r-- 1 tclark tclark 0 Feb 3 09:00 example1.fil

-rw-r--r-- 1 tclark authors 0 Jan 27 00:22 umask_example.fil

drwxr-xr-x 8 root root 4096 Jan 25 22:16 ..

-rw-rw-r-- 1 tclark tclark 0 Jan 13 21:13 example2.xxx

-rw-r--r-- 1 tclark tclark 120 Aug 24 2004 .gtkrc

-rw-r--r-- 1 tclark tclark 24 Aug 18 2004 .bash_logout

-rw-r--r-- 1 tclark tclark 191 Aug 18 2004 .bash_profile

-rw-r--r-- 1 tclark tclark 124 Aug 18 2004 .bashrc

-rw-r--r-- 1 tclark tclark 237 May 22 2003 .emacs

-rw-r--r-- 1 tclark tclark 220 Nov 27 2002 .zshrc

drwxr-xr-x 3 tclark tclark 4096 Aug 12 2002 .kde


Appending command output to a file

$ date >> time.txt

$ date >> time.txt

$ date >> time.txt

$

$ cat time.txt

Thu Feb 24 23:31:22 MST 2005

Thu Feb 24 23:31:36 MST 2005

Thu Feb 24 23:31:50 MST 2005


Accepting input from a file

$ less < dir.lst

total 68

drwx------ 4 tclark tclark 4096 Feb 24 23:27 .

-rw-rw-r-- 1 tclark tclark 0 Feb 24 23:27 dir.lst

-rw------- 1 tclark tclark 11629 Feb 24 21:24 .bash_history

-rwxrwxr-x 1 tclark tclark 325 Feb 24 21:17 mylogin

-rw------- 1 tclark tclark 4151 Feb 24 21:17 .viminfo

-rwxrwxr-x 1 tclark tclark 208 Feb 19 22:52 test.bsh

drwxrwxr-x 2 tclark authors 4096 Feb 3 23:11 examples

-rw-rw-r-- 1 tclark tclark 0 Feb 3 09:00 example1.fil

-rw-r--r-- 1 tclark authors 0 Jan 27 00:22 umask_example.fil

drwxr-xr-x 8 root root 4096 Jan 25 22:16 ..

-rw-rw-r-- 1 tclark tclark 0 Jan 13 21:13 example2.xxx

-rw-r--r-- 1 tclark tclark 120 Aug 24 2004 .gtkrc

-rw-r--r-- 1 tclark tclark 24 Aug 18 2004 .bash_logout

-rw-r--r-- 1 tclark tclark 191 Aug 18 2004 .bash_profile

-rw-r--r-- 1 tclark tclark 124 Aug 18 2004 .bashrc

-rw-r--r-- 1 tclark tclark 237 May 22 2003 .emacs

-rw-r--r-- 1 tclark tclark 220 Nov 27 2002 .zshrc

drwxr-xr-x 3 tclark tclark 4096 Aug 12 2002 .kde

(END)

 

The above book excerpt is from:

Easy Linux Commands
Working Examples of Linux Command Syntax

ISBN: 0-9759135-0-6   

Terry Clark 

http://www.rampant-books.com/book_2005_1_linux_commands.htm 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by Conversational