clear(1) General Commands Manual clear(1)Name
clear - clear terminal screen
Syntax
clear
Description
The command clears your screen if this is possible. It looks in the environment for the terminal type and then in to figure out how to
clear the screen.
Files
/etc/termcap terminal capability data base
clear(1)
Check Out this Related Man Page
TPUT(1) BSD General Commands Manual TPUT(1)NAME
tput, clear -- terminal capability interface
SYNOPSIS
tput [-T term] attribute ...
clear
DESCRIPTION
The tput utility makes terminal-dependent information available to users or shell applications. When invoked as the clear utility, the
screen will be cleared as if
tput clear
had been executed. The options to tput are as follows:
-T The terminal name as specified in the termcap(5) database, for example, ``vt100'' or ``xterm''. If not specified, tput retrieves the
``TERM'' variable from the environment.
The tput utility outputs a string for each attribute that is of type string; a number for each of type integer. Otherwise, tput exits 0 if
the terminal has the capability and 1 if it does not, without further action.
If an attribute is of type string, and takes arguments (e.g. cursor movement, the termcap ``cm'' sequence) the arguments are taken from the
command line immediately following the attribute.
The following special attributes are available:
clear Clear the screen (the termcap(5) ``cl'' sequence).
init Initialize the terminal (the termcap(5) ``is'' sequence).
longname Print the descriptive name of the user's terminal type.
reset Reset the terminal (the termcap(5) ``rs'' sequence).
EXIT STATUS
The exit status of tput is as follows:
0 If the last attribute attribute argument is of type string or integer, its value was successfully written to standard output. If the
argument is of type boolean, the terminal has this attribute.
1 This terminal does not have the specified boolean attribute.
2 Usage error.
3 No information is available about the specified terminal type.
SEE ALSO termcap(5), terminfo(5)STANDARDS
The tput utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
The tput utility appeared in 4.4BSD.
BUGS
The tput utility cannot really distinguish between different types of attributes.
Some termcap entries depend upon having a '%' in them that is just a '%' and nothing more. Right now we just warn about them if they do not
have a valid type declaration. These warnings are sent to stderr.
BSD June 15, 2002 BSD
Ok..i've installed Apache 1.3.14, and it runs... BUT...I can't figure out how to get the php-4.0.4 module to run, and i've read through the install file and EVERYTYHING, aafter about 10 attempts I pissed myself off enough to goto sleep...Can anyone suggest a place to look for a lil bit more help?... (10 Replies)
I've got 100 directories that each have 2 directories with in them.
Structered like this:
/home/domains/domain1/
through to
/home/domains/domain100/
and those 2 directories mentioned above are here:
/home/domains/domain1/directory1/
/home/domains/domain1/directory2/
through to... (7 Replies)
How to set the display environment variable through a script?
i tried that using "setenv" but it gave me error.
is there any idea?
:confused: (19 Replies)
Hai,
I have a program which updates the result in a log file, as the program runs 24*7,the size of log file keeps on increasing.
Can you help me with a shell command which will clear the content of a log file in use.
1) I tried tail -10 logfile > logfile ( the content is not changed )
2) >... (10 Replies)
PROGRAM A <-> PROGRAM B
PROGRAM A sends data as STDIN ro PROGRAM B and when PROGRAM B is executed from PROGRAM A, it sends output back to PROGRAM A. This is implemented using 2 pipes (fd1 & fd2).
The above process happens in a loop and during the second run, the previous data that had been... (10 Replies)
Here's my problem: the $1 parameter is getting permanently set when you dot-run a script - and I cannot unset it.
Here's how to duplicate the problem:
1) Create a script called testme and put this simple command in the script:
echo 1=$1
Save the script
2) Make the testme script... (12 Replies)
Hi
I have a solaris 8 server that have LUN being removed from the server but it is still show up as error device in format command and in vxvm, i have already run devfsadm -C but it does not clear up the disk, is there other command to do this without reconfiguration boot?
34. c9t2d0... (9 Replies)
Hi,
I have a folder which contain the log files. The folder may contain sub folders as well. I want to move the contents of the log folder to tmp folder periodically. I have used the command.
LOG_DIR=/logs
DESTINATION_DIR=/tmp/logs
find ${LOG_DIR} -mtime +1 -exec mv {}... (10 Replies)
I need to utilize pam_pwdfile in order to authenticate virtual users in vsftpd. I know I can utilize htpasswd2 -m to create a password file however it is vital since I am administrating several machines in our organization that the password generated be in clear text. Does anyone on here know if... (10 Replies)
Hello,
The purpose of the program is to print a sub string from the prompt inputs. I do not understand why char pointer does not work but char array will for line 40 and Line 41.
./a.out thisisatest 0 8
substring = "thisisat"And my code is:
#include <stdio.h>
#include <stdlib.h>
#include... (29 Replies)
I am so frustrated!!!
I want a nice command that clears away duplicate files:
find . -type f -regex '.*{1,3}\..*' | xargs -I## rm -v '##'
should work in my opinion. But it finds nothing even though I have files that have the file name:
Scooby-Doo-1.txt
Himalaya-2.jpg
Camping... (8 Replies)
On an OmniOS server, I removed a single-disk pool I was using for testing.
Now, when I run zpool import it will show it as FAULTED, since that single disk not available anymore.
# zpool import
pool: fido
id: 7452075738474086658
state: FAULTED
status: The pool was last... (11 Replies)