LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   clear utility in Slackware 12.1 (https://www.linuxquestions.org/questions/linux-newbie-8/clear-utility-in-slackware-12-1-a-682213/)

ironperson 11-09-2008 03:40 PM

clear utility in Slackware 12.1
 
Hello. I have installed full distribution kit Slackware 12.1, but have not found there the program "clear" for screen clearing. It has appeared very much not conveniently. Somebody knows how to clear the screen in another way?
In advance thanks.

onebuck 11-09-2008 03:52 PM

Hi,

The 'clear' command is there. What terminal type? What happens when you issue the 'clear' from the cli within a terminal? You could try 'reset' from the terminal.


Code:

excerpt from 'man clear';

NAME
      clear - clear the terminal screen

SYNOPSIS
      clear

DESCRIPTION
      clear clears your screen if this is possible.  It looks in the environ-
      ment for the terminal type and then in the terminfo database to  figure
      out how to clear the screen.


      clear ignores any command-line parameters that may be present.


bibh_lnxq 11-09-2008 04:03 PM

clear is most certainly there, at least here it is, and I did not put it there myself :).
Try /usr/bin/clear
Also: use
whereis clear
to see where all the stuff related to clear can be found.
Finally, to answer your actual question: no, I do not know of any other way except by closing your present terminal and starting a new one.

colucix 11-09-2008 04:13 PM

Apart finding out why the clear command is missing, in bash you can clear the terminal using Ctrl+L.

masonm 11-09-2008 06:43 PM

clear is there. Bad/incomplete install?

ironperson 11-10-2008 09:26 AM

Thanks! Ctrl+L has helped me
I could not find clear among packages for installation on a disk. Man too has not worked. Tried to find clear with the find - but has not helped.
reset too has not worked.
It is possible to draw a conclusion, that clear does not enter in Slackware 12.1 (at least at me).

brianL 11-10-2008 10:01 AM

It's there in /usr/bin for me, too. Did you do a full install?

colucix 11-10-2008 11:19 AM

Why not simply verify the presence/integrity of the ncurses package and eventually try to (re)install it? I'm not used to slackware, but the clear command is provided from ncurses as for other linux distributions.

snowtigger 11-10-2008 11:37 AM

I think this comment explains a lot ironperson's question.
Quote:

I could not find clear among packages for installation on a disk
Clear does not have its own package. It is part of the ncurses package, as pointed out by colucix.

THey maybe confusing it with another distribution that may have clear as a separate package.

:)

ironperson 11-10-2008 12:58 PM

I've reinstalled ncurses. Now it works!!!
It is interesting, why at full installation of the system clear did not work.

masonm 11-10-2008 01:27 PM

Sounds like a bad install to me. If you did a full install and want to make sure you're not missing anything else you can use slackpkg and use the command

Code:

slackpkg install slackware
This will cause slackpkg to install anything in the full Slack install that may have been missed due to bad install media or other factors that could have borked your installation.


All times are GMT -5. The time now is 09:23 PM.