LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-09-2008, 04:40 PM   #1
ironperson
LQ Newbie
 
Registered: Nov 2008
Posts: 8

Rep: Reputation: 0
Smile 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.
 
Old 11-09-2008, 04:52 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,604
Blog Entries: 25

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
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.
 
Old 11-09-2008, 05:03 PM   #3
bibh_lnxq
Member
 
Registered: Nov 2004
Location: Leiden, Netherlands
Distribution: SuSE; Fedora;Slackware
Posts: 58

Rep: Reputation: 15
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.
 
Old 11-09-2008, 05:13 PM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Apart finding out why the clear command is missing, in bash you can clear the terminal using Ctrl+L.
 
Old 11-09-2008, 07:43 PM   #5
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 14.2 Solus
Posts: 2,264

Rep: Reputation: 51
clear is there. Bad/incomplete install?
 
Old 11-10-2008, 10:26 AM   #6
ironperson
LQ Newbie
 
Registered: Nov 2008
Posts: 8

Original Poster
Rep: Reputation: 0
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).
 
Old 11-10-2008, 11:01 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
It's there in /usr/bin for me, too. Did you do a full install?
 
Old 11-10-2008, 12:19 PM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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.
 
Old 11-10-2008, 12:37 PM   #9
snowtigger
Member
 
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364

Rep: Reputation: 35
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.

 
Old 11-10-2008, 01:58 PM   #10
ironperson
LQ Newbie
 
Registered: Nov 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Smile

I've reinstalled ncurses. Now it works!!!
It is interesting, why at full installation of the system clear did not work.
 
Old 11-10-2008, 02:27 PM   #11
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 14.2 Solus
Posts: 2,264

Rep: Reputation: 51
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using cfdisk utility for slackware installation hulk321 Slackware 25 10-13-2007 12:35 AM
slackware comes with any mp3, id3 tags manipulating utility? nass Slackware 2 06-26-2007 11:34 AM
delldset diagnostic utility on Slackware 8 raindogs Slackware 2 08-03-2006 12:40 PM
How to clear a std::string buff.clear()? lucky6969b Programming 3 03-17-2006 08:50 AM
how do i replace the clear "clear screen" with the cls command thefedexguy SUSE / openSUSE 2 12-02-2005 06:02 PM


All times are GMT -5. The time now is 12:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration