Linux terminal SCREEN command - linux

I want to open a new terminal to execute a script file again. I need to open a new terminal and execute one more script.
I give a try with SCREEN command but it does work for only the first terminal.

You shouldn't open a new screen inside a screen. If you need another terminal inside the screen press "CTRL+a" and then "c".
This should open a new terminal. You can swap between terminals by "CTRL+a" followed by "a".
If you open more than two terminals inside the screen you can open an overview with "CTRL+a and then SHIFT+2"
If your done detatch the screen by pressing "CTRL+a then d". Reopen a screen with "screen -x (+ screen-id if you have multiple screens detatched)"

Related

How to open a new terminal in VS Code from command line?

Is it possible to open a new terminal tab in VS Code from the command line? I know it's possible to have hotkeys and click the icon in the GUI. However, I need to do this from a script to have several terminals. I am running Ubuntu within a Docker devcontainer. I looked at the solution of using a terminal multiplexer, which might work, but it doesn't seem necessary.

Why I can't open the cmd window on my Win10?

When I press Windows+R and input cmd to open the command line, the cmd window doesn't appear, only the cmd icon appears on the taskbar.
How can I fix it?
Once you have opened it, you might type ALT+SPACE. This shortcut opens the menu for minimising and maximising but also for moving a window. It is possible that your command window is somewhere present on another second screen (which is not there anymore, but Windows seems not to realise that), so using that shortcut you can move your window till you see it again.

Get window_ID of gnome-terminal window by tab name (may not be active tab)

I'm running gnome-terminal in SLES-11. I work on several debug and support issues running in parallel (EDA related) and have as many 15 desktops with a gnome terminal window in each one (one gnome-terminal process with multiple windows across all desktops).
The gnome terminal window in each desktop has several named tabs, eg Ticket_number, VIEW, LIB, RUN debug, etc.
Here's what I'm trying to find:
Given a name string, find the window_ID of the gnome terminal window containing that a tab with that name. The named tab may not be the active tab (will not be in WM_NAME)
What I've tried so far:
searching environment of gnome-terminal process: no tab name info at all
Searching window xprops: only shows info for current active tab
I don't have root access and don't have any choice to change OS, gnome version or terminal app.
Are there any other ideas I could pursue?
Given a name string, find the X window ID of the gnome-terminal window(s) containing that named tab, even if the named tab is not the active tab.
Thanks and Best Regards,
You can use "xdotool search" to get the windowID. Insert between quotes the terminal title:
xdotool search --name "text_to_search"
To install "xdotool" type:
sudo apt-get install xdotool

Sublime Text 3 - split windows at launch

Running Windows and Sublime Text (3.1.1 Build 3176) for the last few days, every time I launch the editor it starts with one window split into two panes. This happens whether I
launch from a command prompt with 'subl';
launch form the window menu; or
select a file from the file manager and edit it
It never remembers that I have set it back to a single pane with Alt-Shift 1. I cannot find a setting to change this behaviour.
Help pls

running x11 on cygwin, all terminals stuck at one corner

I am trying to run x11 on cygwin, mainly to run xfig utility, and I am facing a problem.
When I run xinit to start x11, I get a big popup window with one terminal open. But I am unable to open any other terminals in it. To be more specific, when I run "xterm &" in it, a new terminal opens up but it sits on top of the old terminal, and there is no way I can move this window, so the old terminal is as good as useless to me, till I kill the new terminal.
I also tried running "xwin". There a big window popped up, but it does not contain any terminal, and I cant open any terminal, whether by left or right clicking.
I also tried running "startx". A big window opens up but gets killed automatically after a few seconds.
How can I use x11 effectively on cygwin? As of now, I can use with "xinit", but with only one terminal.
The proper mode to start the Xserver on cygwin is to use starxwin.
From its manual:
The startxwin script is a front end to xinit(1) that provides a
some what nicer user interface for running a single session of the X Window
System in multiwindow mode. It is often run with no arguments.
To move windows around, you need to have a window manager running. You can start this either from the xterm, by passing the name of the window manager as an argument to startx, or by starting it from your X11 startup configuration (memory says that would be ".xinitrc" in your home directory on most unix boxes, but I am not sure if that's true on Windows using Cygwin). The .xinitrc file is "just" a shell-script, with the end of the script indicating "X should shut the server down now" (see example at the end).
There are many possible window managers, including fvwm2 (which according to your comment, you managed to find on your own). A full list of X11 window managers is probably too long to fit in this answer (there are many, there are new ones popping up, and old ones going out of maintenance on an ongoing basis). Some of the not entirely uncommon ones are fvwm2 (already mentioned), cinnamon, twm, ctwm, ratpoison, ... For a more up-to-date list, ask your favourite search engine for "list of X11 window managers".
Example .xinitrc file:
# This is an example .xinitrc file, starting first an xterm,
# then a window manager. As the X server terminates when this script
# does, we start the X terminal in the background, but the window
# manager in the foreground, so that "WM exists" signals "X server shuts down"
xterm &
fvwm2

Resources