So you can re-script the Linux shell to act more like ms-dos. The DOS command CLS in ubuntu linux is clear. so you can create a short bash shell script and this is the example: 
open a new shell with the command "konsole --type us" ... 
then type the next commands,  
1. cd /bin 
2. vi cls
OK, so now you have opened a new file to be scripted called "cls". Next we have to use the shell text editor "VI".  
type in the script: 
              #!/bin/sh
              clear 
it's just 2 lines of text. 
VI editor information: http://www.eng.hawaii.edu/Tutor/vi.html
 
To Setup the script to execute as a command you change the permissions: 
 1.   chmod 555 cls and/or chmod 255 cls        
         (gives everyone read/execute permission) 
and/or
  2.    chmod +rx cls 
           (gives everyone read/execute permission)
  3.    chmod u+rx cls 
           (gives only the script owner read/execute permission)
Monday, February 4, 2008
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment