LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-06-2011, 07:19 AM   #1
sunlinux
Member
 
Registered: Feb 2006
Distribution: RHCL 5
Posts: 229

Rep: Reputation: 30
SCREEN command


Cool, I have been working with command called screen and find it pretty handy, I have one query with it .

that like it open different windows like screen:1, screen:2 likewise. but I am confused while working with them , how can I see the list of opened screen list and move to what I would like to work ? like can we list them as below:

screen:0
screen:1
screen:2

and select which ever we wish to work with.
 
Old 09-06-2011, 07:32 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Ctrl-a " shows you the list of windows. Ctrl-a ? shows you a list of key bindings, which might also be useful. If you want to see a list of screen sessions, run "screen -ls". This stuff is covered in the manual..

Last edited by Nylex; 09-06-2011 at 07:34 AM.
 
Old 09-07-2011, 02:43 AM   #3
sunlinux
Member
 
Registered: Feb 2006
Distribution: RHCL 5
Posts: 229

Original Poster
Rep: Reputation: 30
but Ctrl-a " and Ctrl-a ? keys are not working ... using centos 5.4-- any command ?
 
Old 09-07-2011, 02:48 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Those are standard commands for Screen. What exactly do you want? A list of screen sessions (e.g. to see which are detached), or to see a list of windows in a given session? For the former, run "screen -ls" and for the latter, the commands above should work. You have to press Ctrl-a, release the keys and then type the " (which is Shift-2 for a UK keyboard), for example.
 
1 members found this post helpful.
Old 09-07-2011, 03:26 AM   #5
indeliblestamp
Member
 
Registered: Feb 2006
Distribution: Fedora
Posts: 341
Blog Entries: 3

Rep: Reputation: 39
You can create a file called .screenrc in your home directory and add something like this:
Code:
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][ %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}].'
autodetach on
defscrollback 30000 # Use a 30000-line scrollback buffer

termcapinfo xterm ti@:te@
In my box it displays a nice, coloured list of terminals in the current screen session.
 
Old 09-07-2011, 06:56 AM   #6
sunlinux
Member
 
Registered: Feb 2006
Distribution: RHCL 5
Posts: 229

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Nylex View Post
Those are standard commands for Screen. What exactly do you want? A list of screen sessions (e.g. to see which are detached), or to see a list of windows in a given session? For the former, run "screen -ls" and for the latter, the commands above should work. You have to press Ctrl-a, release the keys and then type the " (which is Shift-2 for a UK keyboard), for example.

thanx helped.. I wonder on my foolishness
 
  


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
Open Screen as Daemon Will not Execute Command Unless Screen is Opened redir Linux - Software 1 08-08-2011 08:36 PM
screen command Alfie67 Debian 3 09-13-2005 06:16 PM
How do I kill a screen from command-line if I know the screen name? CrewXp Linux - Software 6 08-27-2005 11:35 AM
screen command newbie007007 Linux - General 3 07-04-2005 05:10 PM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 08:14 PM


All times are GMT -5. The time now is 10:46 AM.

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