Miscellaneous
  Home arrow Miscellaneous arrow Page 3 - The Terminal in UNIX
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Download TestComplete 
Forums Sitemap 
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MISCELLANEOUS

The Terminal in UNIX
By: Gabor Bernat
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2009-03-11

    Table of Contents:
  • The Terminal in UNIX
  • Speed it up
  • A work session
  • Basic concepts for working with the shell

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    The Terminal in UNIX - A work session


    (Page 3 of 4 )

    On almost all of today's PCs, UNIX-based operating systems come with a graphical interface. On Linux, this is either GNOME or KDE (K Desktop Environment). On some of them, however (mainly the served-based ones), a graphical interface is not installed, and you will have to use only the console.

    Regardless of this, the basic steps you need to complete are the same. What differs is the environment. First, you need to authenticate yourself. Enter your user name and password. The environment variable settings (like what key should do what, how the screen should look, and so forth) are automatically set by the shell once we start a terminal.

    During the session, we hold a conversation with the kernel. We can enter command lines one after another, and the shell will echo back via the terminal.

    Not all commands print something on the console. Some may just do a job and close with that. In fact, within UNIX it is a general philosophy that only in case of error should something be printed. If something goes right, nothing should be printed on the terminal.

    We can exit from the terminal with the exit command, or also by ending the input file the shell is interpreting. By default, this is the standard input. So when we send an eof signal (^D), the terminal will also close.

    Of course, it is recommended to clean up after ourselves. If we modified the current working directory, we should set it back to the old one. We will learn how to do these tasks later. You can get the current working directory with the pwd (print working directory) command.

    More Miscellaneous Articles
    More By Gabor Bernat


     

    MISCELLANEOUS ARTICLES

    - Using PHP to Stream MP3 Files and Prevent Il...
    - 10 Must Have Firefox Improvements
    - All About OpenOffice 3.0
    - Shell Script Writing
    - Loops in the UNIX Shell
    - The Test in the UNIX Shell
    - Data Streams and the UNIX Shell
    - Control Mechanisms of the UNIX Shell
    - Variables Within the UNIX Shell
    - The Shell and UNIX
    - In Detail: UNIX File Systems
    - Rights Management in UNIX
    - UNIX File Systems
    - The Terminal in UNIX
    - Operating Systems and UNIX





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek