home news blogs forums events research newsletter whitepapers careers


Network Computing Network Computing Powered by InformationWeek Business Technology Network
InformationWeek 500 Conference -- September 14-16, 2008 Registed Today!

IMMERSE YOURSELF:

SOA

  |

Data Center

  |

802.11n

  |

Data Privacy

  |
APO  |

Virtualization

  |

NAC

  |

Security

  |

Network Mgmt

  |

Enterprise Apps

  |

Storage & Servers




Learning Essential Command and Files: Listings

Listing 1. Sample output from some UNIX commands

A. The date command produces a formatted date/time string:

$ date
Sun Mar 20 08:15:48 MST 1988
$ []

B. Use the cal command to print a monthly calendar:

$ cal 12 1988
December 1988
S M Tu W Th F S
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
$ []

C. The uname command tells you about your system hardware and software:

$ uname -a
UNIX omni SYSTEMS 3.51 mc68k
$ []

Listing 2. The command prints a listing of a directory

A. The standard System V ls command produces a single-column directory listing:

$ ls
07start.mm
07start.prn
listing1
listing2
listing3
listing4
outline save
$ []

On Berkeley UNIX, ls produces a multi-column listing when output goes to the screen.

B. A long directory listing shows file and directory detail:

$ ls -l
total 55
-rw-r--r-- 1 arh omni 9693 Mar 21 15:19 07start.mm
-rw-r--r-- 1 arh omni 11026 Mar 21 21:26 07start.prn
-rw-r--r-- 1 arh omni 536 Mar 21 21:07 listing1
-rw-r--r-- 1 arh omni 417 Mar 21 21:08 listing2
-rw-r--r-- 1 arh omni 965 Mar 21 21:23 listing3
-rw-r--r-- 1 arh omni 761 Mar 21 21;10 listing4
-rw-r--r-- 1 arh omni 2470 Mar 17 21:52 outline
drwxr-xr-x 2 arh omni 48 Mar 15 14:03 save
$[]

Listing 3. Basic editing with Ed

A. Create a text file by appending lines:

$ ed sample.txt
?sample.txt
a
This is a sample file. It is being created with the 
help of the ed text editor.
.
w
81
[]

B. View the lines you entered using the Ed print (p) command:

l,$p
This is a sample file. It is being created with the 
help of the ed text editor.
[]

C. Terminate editing by typing the Ed quit (q) command:

q
$ []
Print This Page


e-mail Send as e-mail





Ready to take that job and shove it?

Function:

Keyword(s):

State:
SPONSOR
RECENT JOB POSTINGS
CAREER NEWS
Go beyond Google and get vertical. These specialized search sites will help you find the business information you need -- fast.

Ari Balogh was named to the post of chief technology officer as the companys for a "realignment" of employees.










InformationWeek U.S. IT Salary Survey 2008
Salaries for business technology professionals are falling. Here's what you need to know in order to make good hiring decisions and personal career choices. Download Today
 
ROLLING RIGHT ALONG
Follow key Network Computing Reviews from conception to completion. This Week: Holistic APM.



Network Computing Reports Emerging Enterprise Podcast Series: Secrets to Success








TechSearch


Microsite of the Week


Powerful Information at Your Fingertips



InformationWeek Business Technology Network
InformationWeekInformationWeek 500InformationWeek 500 ConferenceInformationWeek AnalyticsInformationWeek CIO
InformationWeek EventsInformationWeek ReportsInformationWeek MagazinebMightyByte and SwitchDark Reading
Digital LibraryIntelligent EnterpriseInternet EvolutionNetwork ComputingNo Jitter
space
Techweb Events Network
InteropVoiceConWeb 2.0 ExpoWeb 2.0 SummitEnterprise 2.0 ConferenceMobile Business ExpoSoftware ConferenceCSI - Computer Security Institute
Black HatGTECEnergy CampMashup CampStartup Camp
space
Light Reading Communications Network
Light ReadingLight Reading EuropeUnstrungLight Reading's Cable Digital NewsConstantinopleInternet Evolution
Heavy ReadingLight Reading Live!Light Reading InsiderEthernet ExpoOptical ExpoTeleco TVTower Technology Summit
space
Financial Technology Network
Advanced TradingBank Systems & TechnologyInsurance & TechnologyWall Street & TechnologyAccelerating Wall StreetBank Systems & Technology Executive SummitBuyside Trading SummitInsurance & Technology Executive Summit
space
Microsoft Technology Network
MSDN MagazineTechNetThe Architecture Journal
space
App Infrastructure   |   Messaging & Collaboration   |   Network & Systems Mgmt   |   Network Infrastructure   |   Security  |   Storage & Servers   |   Wireless   |   Enterprise Apps
About Us  |  Contact Us  |  Site Map  |  Technology Marketing Solutions  |   Briefing Centers
Copyright © 2008  United Business Media LLC  |  Privacy Statement  |  Terms of Service  |  Your California Privacy Rights