LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Screen command not working ! (https://www.linuxquestions.org/questions/linux-newbie-8/screen-command-not-working-869320/)

gardenair 03-17-2011 11:39 PM

Screen command not working !
 
I am using cent os 5 and i am remotely connected with it using putty.I want to use screen command but when I type the command

Code:

[root@test-proxy]# screen
-bash: screen: command not found

If I search the screen command using fine command
Code:

[root@test-proxy]# find / -name "screen" -print
/usr/share/terminfo/s/screen

If I enter into the said above dir and type screen it say command not found.

kindly guide me how can I use screen command ?
thanks
garden

macemoneta 03-17-2011 11:40 PM

You need to install it first.

Code:

yum install screen

kingston 03-18-2011 12:00 AM

you dont need to use "find" for finding the binaries. "Which" command will tell you where the binary is if it is installed.
Quote:

[xkinved@einbalx0006 ~]$ which screen
/usr/bin/screen
is the output from my linux box

gardenair 03-18-2011 12:05 AM

Thanks for guiding me. If find has searched screen then why I may download ?
Kindly guide me the link from where I may download and install screen for my Linux cent os 5 .
thanks

gardenair 03-18-2011 12:08 AM

by using which command I find the output as.

Code:

[root@test-proxy s]# which screen
/usr/bin/which: no screen in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[root@test-proxy s]#

thanks
garden

gardenair 03-18-2011 03:59 AM

Well I have download screen-3.7.4.tar in my cent os. I have also untar screen.The thing which I need guidance that where should I install it ? After /usr/local what will be the next directory location to install it ?

Code:

[root@ test-proxy ]#  ./configure@--prefix=/usr/local/
then will be

# make all
and at last
# make install

Thanks for guidance,
garden

EricTRA 03-18-2011 04:01 AM

Hi,

Why aren't you using the package manager as indicated by macemoneta?
Code:

yum update
yum install screen

That is, if you've configured your yum repositories correctly.

Kind regards,

Eric

Aquarius_Girl 03-18-2011 04:06 AM

Quote:

Originally Posted by gardenair (Post 4294770)
Well I have download screen-3.7.4.tar in my cent os. I have also untar screen.The thing which I need guidance that where should I install it ? After /usr/local what will be the next directory location to install it ?

It will get installed automatically where ever it is supposed to:
All you have to do is to:

tar -xf screen-3.7.4.tar
cd screen
./configure
make
sudo make install
updatedb


All times are GMT -5. The time now is 02:35 PM.