date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,483,602,912,000
It would be awesome to modify spark to print narrow characters in for example Gnome Terminal. Is this at all possible with Bash / Python?
No. While VT100-compatible terminals do have support for double-width lines (using the DECDWL control sequence), they don't have support for narrow lines or characters.
Narrow characters
1,514,674,496,000
I am having a little problem with my ubuntu16.04 terminal. I wanted to have access to a data-base through the use of the : echo source /Infos/bd/config11 >> .bashrc echo source /Infos/bd/config11 >> .bash_profile However I unfortunately don't have acces to this data-base since it's not on my computer. Every time I op...
To avoid seeing this, you should edit your startup scripts so they no longer attempt to source the missing file: sed -i 'sXsource /Infos/bd/config11X#&X' ~/.bashrc ~/.bash_profile This will comment out the line in both files.
wrong echo command
1,514,674,496,000
I'm using Gnome Terminal to connect via SSH to my server. My account on the remote server (which is Ubuntu) uses bash. My bashrc contains a line that sets the shell prompt to include my current git branch if applicable: parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } exp...
This turned out to be because I had enabled the ui color=always option in git, not directly because of my shell prompt or the parse_git_branch function. The "git branch" command was displaying with color, but the original author of the parse_git_branch function did not account for that and chopped the string up in suc...
Terminal doesn't wrap properly [closed]
1,514,674,496,000
I was running Fedora 34 until now. Fedora 38 came out and I moved to that. I'm using MATE with Gnome Terminal. The font is set to Monospace 13 in both systems. Yet there's a difference in the font. What I don't like in Fedora 38. How could I have the same font like I had in Fedora 34? The change can be seen especially...
"Monospace" is not a real font; it's merely an alias to some or other font, which traditionally used to be DejaVu Sans Mono on Linux for about a decade – with the distinct flattened @ shape as in your "original" screenshot. (DejaVu fonts weren't really great fonts though, merely decent, but for a long time there weren...
Fedora's Gnome Terminal's Monospace font changed?
1,514,674,496,000
I am trying to install clamav in kali for removal of viruses in PC and USB.and I did: root@kali:~# apt-get install clamav Reading package lists... Done Building dependency tree Reading state information... Done Package clamav is not available, but is referred to by another package. This may mean that the packag...
Check your repos: http://docs.kali.org/general-use/kali-linux-sources-list-repositories Update the local cache using: apt-get update (as Svetlin Tonchev said.) try again with: apt-get install clamav Optional: Search for it using: apt-cache search clamav
E: Package 'clamav' has no installation candidate?
1,514,674,496,000
I often need to grep for a particular expression in a large text file. For some reason the private vendor decide to use CR (carriage return, \0D) to separate argument on a particular line of the text file. However the CR character gets interpreted by the terminal, making my grep or cat command pretty much useless. So ...
GNU cat has a few options to aid printing files containing such special characters: -v, --show-nonprinting use ^ and M- notation, except for LFD and TAB So cat -v /tmp/bla should do it in your case. Or perhaps even -et, which also prints tabs and line ends in a special way.
Do not interpret Carriage Return (`\0D`) in my terminal
1,514,674,496,000
What should I enter inside gnome-terminal to change its current geometry to 80x24? The same action as GUI's Settings - Advanced - 80x24.
xdotool getactivewindow windowsize --usehints 80 24 --usehints Use window sizing hints (when available) to set width and height. This is useful on terminals for setting the size based on row/column of text rather than pixels.
gnome-terminal: change the window geometry from cli
1,514,674,496,000
I've recently installed Linux Mint 18.1 and I'm using Terminal all the time. My Terminal is GNOME version 3.18.3. There are various menus in the GNOME Terminal. In Windows you typically access something like "Edit" by going Alt-E. This doesn't work for Terminal. Is there any way of of accessing these menus without b...
In GNOME Terminal, you can access the menu using F10. Press that to open the File menu, then use the arrow keys to navigate inside that menu (↑ and ↓) or to open other menus (← and →). You can enable menu shortcuts (AltF for the File menu etc.) by checking the “Enable mnemonics” option in the preferences: You can als...
Use Terminal menus without using mouse?
1,514,674,496,000
I am using Arch linux. However after the recent gnome update, I am not able to copy or paste anything into or from gnome terminal to gui applications like editors or browsers. However I am able to copy and paste within the the terminal like coping and pasting a previous command or output. I am also able to copy paste ...
Copy/paste between Wayland windows and XWayland windows does not work yet (it has not been implemented). I can't manage to find any official source on this, but here are a couple of links to posts saying exactly this: http://www.phoronix.com/forums/forum/software/desktop-linux/49641-gtk-3-18-plans-for-full-wayland-sup...
Cannot copy-paste from or to the gnome-terminal
1,514,674,496,000
My gnome-terminal on a ubuntu 10.10 machine is not working the way it should work. No autocomplete is working. ctrl + l won't clear the screen, bash prompt is simply a $ and nothing else. I got this machine passed on from someone else. I just created a new user for myself and hoped that I would get a fresh start. I c...
make sure that you are indeed running bash and not another csh for example by executing the following: ps -p $$ This will tell you what shell you are running. If this returns something different than bash you can try your shortcuts after running the following: bash You can also change the users shell by running: chs...
Gnome Terminal won't autocomplete
1,514,674,496,000
I installed konsole and uninstalled gnome-terminal by doing: sudo apt install -y konsole sudo apt-get purge --auto-remove gnome-terminal And then tried: sudo update-alternatives --config x-terminal-emulator To set konsole as the default emulator, wich returns: There is only one alternative in link group x-terminal-e...
After using the command: sudo update-alternatives --config x-terminal-emulator And selecting Konsole from the terminals menu. I still had to go to Linux Mint's "Preferred Applications" menu and set Konsole as the default emulator. That was the only thing that worked for me.
Replace gnome-terminal with konsole in Linux Mint
1,514,674,496,000
I am writing a bash script where I pretend to open a new terminal window (in this case a gnome-terminal), execute some commands and change the title of the terminal window. In order to change the title of the terminal window I am using the function set-title as proposed in this answer. The approach works perfectly whe...
I will answer my own question but before explaining the two solutions I have found, I will explain why what I was trying to do did not worked. Why my initial approach was wrong If you have custom functions in your ~/.bashrc file, like in my case the one for setting the title of the terminal window, those functions wil...
How to rename terminal window from a bash script?
1,514,674,496,000
Problem I coincidentally was trying to print a string to STDOUT in gnome-terminal that contains a lot of square brackets and noticed it took a lot of IO time (~4sec for ~100KB). To confirm that there is something specific about that string, I printed another string of the length, and the time is very different. Specif...
Egmont reported the bug on the vte bug tracker (vte is a terminal emulator library used by gnome-terminal, anjuta, deepin-terminal, gtkterm, lilyterm, lxterminal, mate-terminal, remmina, sakura, tilda, vinagre, xfce4-terminal, …). It turned out to be a bug in the underlying fribidi library, which is unfixed as of Octo...
Printing a sequence of square brackets in `gnome-terminal` is very slow
1,514,674,496,000
A few days ago, my ubuntu console started printing '^A' whenever I hit 'CTRL+A', instead of moving the cursor to the start of the line as it did before. The same problem happens for 'CTRL+E', while the 'CTRL+Arrow' shortcuts behave as they should. However, if I log in to a remote machine via ssh, everything works fine...
I would suggest that you have inadvertently changed your line editing scheme from the default "emacs" to "vi". You can reset this back with set -o emacs Or change it back to vi mode with set -o vi
Bash: CTRL+A prints ^A to stdout
1,514,674,496,000
I am using UBUNTU 16 LTS and terminal GNOME v3.18... How to back to standard configuration? I try to use mouse scroll and pgUp/pgDwn but nothing works.
Perhaps a program switched to the alternate screen without restoring. This will undo that (a command): tput rmcup
terminal GNOME lost scroll, how to back normal?
1,514,674,496,000
I need to start an application automatically within a terminal like xterm or gnome-terminal in one command line. Is that possible?
Umm, yes. I'm leaving out the "without user intervention" bit here, because I don't know what that means in this context. With xterm: xterm -e somecommand The terminal will exit as soon as somecommand exits. If that's not wanted, you may explicitly start an interactive shell as well: xterm -e sh -c 'somecommand; bas...
How to start an application within a terminal in one command [closed]
1,514,674,496,000
I am on a SUSE Linux Enterprise Desktop 11 (SP4) machine, with Gnome 2.28.2 running. I set a keyboard shortcut to launch "gnome-terminal" command. And I also added a Launcher shortcut to Panel to do the same. The launcher shortcut on the panel works correctly. It brings up the terminal and sources my profile and chang...
Answer 1 - Modify gnome shortcut to open correct directory It is possible to modify shortcuts in Gnome using the gconf-editor, which you may or may not need to install by running the following command. yum install gconf-editor After starting the program you will go to apps > metacity > keybinding_commands as seen in ...
Keyboard shortcut to open gnome-terminal in GNOME 2.28.2
1,514,674,496,000
Some red text output with git or autojump, are hard to see. I want it become bold. Maybe we can tweak some ansi color code? In the screen-shot below, all bold red text comes from my script. the "j" is autojump's command.
I found the solution about git one. modify in ~/.gitconfig. [color "status"] changed = blue normal bold added = green bold deleted = red bold untracked = magenta bold To autojump output, I can make a alias or script to deal with. addition: After search, I found detail introduce here, hope can help oth...
Can I tweak all red text to bold in gnome-terminal
1,514,674,496,000
When I resize my terminal, weird artifacts start to happen. The past lines start to get mixed. Here's a gallery with what I mean. What is the problem here? How do I fix it? What part of the stack is causing the problem? Is it the Terminal? The shell? I'm using GNOME-Terminal with zsh on Ubuntu 16.10. No, manual reset ...
gnome-terminal (more precisely the VTE widget), unlike most other emulators, rewraps its contents upon resize. Generally this is a useful feature getting great feedback from users; however, with shell prompts, it indeed often causes weird behavior. With the date being printed in the right margin, when you resize the w...
Resizing the terminal causes it to mix previous lines and duplicate pieces of text
1,514,674,496,000
I just installed ubuntu GNOME 16.04. So far, so good. When I run "GNOME terminal", I can do the all the things. But when asked to press "Enter", and I press the button labeled "Enter" on my kepboard near the keypad, it just does an error squirt-beep. If I press the button above right shift (labeled <-|), it works. ...
The two Enter keys are different. The one above the right-shift key sends a carriage-return character (which the terminal driver translates to line-feed as newline), while the other may send an escape sequence when the keypad application mode is enabled. Your instructions meant the former (unless the application use...
Gnome Terminal - keypad enter just beeps
1,514,674,496,000
I face the problem with $_ usage, which $_ special parameter in terminal, And its call the last argument of the previous command. It was not work with cp and mv command in gnome-terminal.It happen to me during folder creation and mv or cp file with $_ like below mkdir test cp file.c $_ instead of copying file to ...
$_ - Gives the last argument to the previous command. At the shell startup, it gives the absolute filename of the shell script being executed. When you execute mkdir test mv file.c $_ Check if your mv, cp is an alias In bash to acces the last arg to the previous command in History use !:$ ,like: > mkdir test > mv fi...
$_ not working with copy and move commands
1,514,674,496,000
I was trying to build the AWN from source, and I installed a bunch of glib/gio dev packages required by libdesktop-agnostic (also built from source) that affect gsettings. At some point during this, I rebooted and found that I couldn't launch any gnome-terminal. (Other gnome apps work normally.) When I use the nemo-...
I had this problem. Exactly the same issues, to the point - I am running Linux Mint 17.2 Rafaela (ubuntu 14.04/trusty) running Cinnamon2.6.1.3 amd64; except it's an Asus machine. I am with you, I want my gnome-terminal back. This is what I did to fix it: sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgra...
gnome-terminal broken due to gsettings+libglib
1,514,674,496,000
Working with Linux Mint Cinnamon and Gnome Terminal, how do I use the term/colors files available from here: http://dotshare.it/category/terms/colors/
All the files there are X resources files for Rxvt (most of them specifically for Urxvt, the Unicode-aware version of Rxvt). They are not generic terminal emulator configuration files, they are configuration file for that specific terminal emulator. They can't be used by Gnome-terminal. If you want to try them out, in...
How do I use a terms/colors file
1,514,674,496,000
I am using gnome-terminal in LXDE. When I have several gnome-terminal windows open, after some time the cursor in the inactive window starts to blink as well, as if the inactive window was actually active. This only happens with gnome-terminal. Other terminal emulators such as LXTerminal work fine. see video of the p...
You can switch to terminator. It is an awesome full featured terminal emulator. It is a bit ugly (in my opinion) when you install, but can easily customize it and even made it look like gnome-terminal.
gnome-terminal: cursor blinks in inactive window
1,514,674,496,000
In the interactive shell oh PHP Delete key is not working and produce ~ instead. Anyone know how to get this key to work? I am using Ubuntu 13.04 if this does matter.
Have you tried running rlwrap -a around the PHP interactive shell? rlwrap fixes many of these types of problems for me in various REPLs.
Delete key doesn't work properly in PHP interactive shell
1,514,674,496,000
When I use su root and then use gnome-terminal I get warning ** (gnome-terminal:2677): WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported and new terminal window does not opens.But when I use su - and then use gnome-terminal new window opens...
The environment setup when providing - is much more complete. From the man page: The optional argument - may be used to provide an environment similar to what the user would expect had the user logged in directly. In particular SESSION_MANAGER is missing if you do su root. You can output the environments by using en...
New Terminal not works when we use su root
1,514,674,496,000
How do I change the default gnome-terminal location on screen. I checked out the preferences but they only have option to change default size. I also checked out .gconf/apps/gnome-terminal/ but didnt find any thing out. All in all my gnome-terminal should normally be gnome-terminal --geometry=80x24+200+200 I dont want...
If it's only the sublime plugin that's bothering you, you just have to edit the plugin preferences and add the geometry parameters: Preferences > Package settings > Terminal > Settings - Default { "terminal": "", "parameters": ["--geometry", "80x24+200+200"] } Another way, if you also want Alt-F2 to open ...
change terminal window default location
1,514,674,496,000
Is there a way to open a new terminal tab in GNOME-Terminal when working on a remote machine that is connected via ssh?
tmux (or screen, the older alternative) are great for this. tmux lets you do both horizontal and vertical splits. You'll probably want to customize tmux, e.g. most people like cmd-a over cmd-b as the 'prefix' key. I use the following ~/.tmuf.conf file settings to make it work better for me: # mdd tmux settings bind r ...
GNOME-Terminal: Create new terminal tab on remote machine
1,514,674,496,000
I want to view mplayer's normal terminal output, and also write it to a log. That works fine when I run mplayer from the commandline, eg: mplayer "$HOME/gdr01.wav" 2>&1 |tee $HOME/junk.log However, I want to launch mplayer in it's own gnome-terminal window. Neither of the following commands write to the log, altho...
What's going on is that gnome-terminal's command line parsing is funky. You're running mplayer with /home/ferer/gdr01.wav, 2>&1, |tee and /home/ferer/junk.log as arguments. If you wait for the end of the audio file, you'll see error messages about these nonexistent files for a microsecond before the terminal closes. ...
No output to log from tee when starting mplayer as an arg to gnome-terminal
1,514,674,496,000
Is there a log feature for gnome-terminal like the "session log" in Putty? I want to log whatever I have typed in the gnome-terminal. I don't want to use pterm under Linux, I just want a gnome-terminal. See an example log here.
You can use script (the command, not 'a script'!) to log shell sessions. Here's some info at about.com.
Putty-like "Session Log" for gnome-terminal?
1,514,674,496,000
I am using the Awesome window manager with Arch, kernel 6.5.5. When I start gnome-terminal for the first time and every other time where I don't already have an instance of gnome-terminal running, it takes several seconds (~20 seconds). I have tried using the gnome window manager as it was suggested in this similar is...
I'm not sure what's exactly wrong, but you can probably check the journal for log of the gnome-terminal-server.service user service to see if it actually reported anything: journalctl --user-unit gnome-terminal-server.service The systemd service is started via dbus through its "companion" dbus service file. There wil...
Gnome-terminal slow start for first instance on arch
1,514,674,496,000
I want a command that opens a terminal and executes a function that is defined in my aliases.zsh. The function is defined like so: my-function() { wget some stuff do some other stuff } I tried gnome-terminal -- my-function, but the new terminal reports that it Failed to execute child process “my-function” (No suc...
~/.zshrc is the customisation file for interactive invocations of zsh. zsh -c 'some code' is an inline script. Like for scripts starting with a #! /bin/zsh - shebang, thankfully, the ~/.zshrc is not sourced on startup. If it were, and you had aliases / functions that change the behaviour of standard commands (it's not...
Open gnome terminal and execute user-defined zsh command
1,621,581,088,000
I got as my first desktop environment gnome. As i go to DWM and wanna call the terminal by Alt+Shift+Enter, the terminal opens in gnome environment, but not in dwm.
in the source code of dwm there's a variable called "termcmd" assuming the terminal under gnome is called "gnome-terminal" you'll have to replace "st" with "gnome-terminal"
Terminal problem DWM
1,621,581,088,000
I have a live running mate-terminal whose scrollback buffer already contains a lot of text with color/bolding, but (unfortunately) no screen management/capture program (like script/screen/tmux) was started on the terminal. Is it possible to copy the existing scrollback buffer contents to a file, preserving all escape ...
You may have overlooked the printAttributes resource: printAttributes (class PrintAttributes) Specifies whether to print graphic attributes along with the text. A real DEC VTxxx terminal will print the underline, highlighting codes but your printer may not handle these. ...
Copy terminal scrollback buffer preserving ANSI escape sequences, but without pre-starting script/screen
1,621,581,088,000
I was updating my linux mint 18.3 to linux mint 19. The error I get is Cannot set LC_ALL to default locale: No such file or directory. Then I Restarted my System, after that I can't open the terminal. I used Ctrl+Alt+F3 to run command line and fixing the LC_ALL error by using the command sudo dpkg-reconfigure locales ...
The thing about error messages is that they tell you what's wrong. Your error message clearly says that there is an unterminated quoted string in /etc/environment. Once you read that, you should investigate that file to see if it looks odd with regards to double quotes. In a comment, you mention that your /etc/environ...
Syntax error: Unterminated quoted string
1,621,581,088,000
Gnome allows the default Terminal Profile to be changed for new Terminals created with Ctrl+Alt+T. But what if I want to: Create a new terminal with a specific profile from the command line gnome-terminal --profile=<profile_name> --working-directory=<full_path> echo $SHLVL produces 2. Is there a way to do this wher...
You can set SHLVL manually for that command to compensate for the erroneous +1: SHLVL=0 gnome-terminal Opens a new window. Then echo $SHLVL 1
Launch Gnome Terminal with Shell Level 1?
1,621,581,088,000
When I login (using ssh) to other host and open a new tab (pressing CTRL + Shift + T). It sets current working directory to a particular directory in my home independent from current working directory on remote host. So what can be the reason for this behavior? And how can I change it? I am using RedHat.
When you press Ctrl+Shift+T, Gnome-terminal looks at the current directory of the process that's running in this tab, and switches to that directory to run the process in the new tab. Observe that if you type bash in a Gnome-terminal tab that's already running a shell and is in /directory1, and you run cd /directory2 ...
New terminal working directory
1,621,581,088,000
When I connect to a debian 8 server I can't change gnome-terminal tab's title, see for yourself: $ ssh deb6-server $ echo -en '\e]0;test\a' # title changes $ echo $TERM xterm-256color $ cat /etc/issue Debian GNU/Linux 6.0 \n \l $ exit $ ssh deb8-server # here the title changes to USER@HOST: CWD $ echo -en '\e]0;test\...
If the ESC ] 0 escape sequence works to change your terminal's title when you use it locally, it also works across SSH. SSH doesn't change the traffic between the application and the terminal. If you run applications in a screen multiplexer such as screen or tmux, these do interpret escape sequences by themselves and ...
Can't change gnome-terminal tab's title from within ssh session on remote debian 8 machine
1,621,581,088,000
I want to open my terminal with some commands executed in it on bootup. So I wrote a script with following line in it: gnome-terminal --tab -t "MyPC" -e "sh -c 'firefox &;exec bash'" --tab -t "MYPC2" -e "sh -c 'ls;exec bash'" In this firefox & is not executing, however if I write only firefox it executes. So only...
Putting a ; after a & does not work. & is already a command separator, specifying, that the command should be run in the background, so ; is not required. Try removing the ; and report back.
gnome--terminal -e option not executing?
1,621,581,088,000
I have a very strange problem on my Ubuntu 14.04 machine. I can't use some letters like r and i in gnome-terminal. Note: when my CapsLock is on I can type R and I in terminal. The problem on my terminal is for just these two letters when in lowercase. For example I can't use the rm command. UPDATE #1 I used: $ sudo...
I found the problem. I decided to activate tab completion in Python's interactive mode. So I added the following lines to /home/user/.inputrc: import rlcompleter, readline readline.parse_and_bind('tab: complete') So when I rebooted my machine the keys r and i from import and readline effected on my keyboard.
Some letters on gnome-terminal can't be typed by specific user [closed]
1,621,581,088,000
This is embarrassing, but I don't seem to be able to set the command-prompt or the shell title. I'm using Gnome3 on centos 7. PROMPT I've added the following to ~/.bashrc: export PS1="\w \$ " The prompt stays the same: echo $PS1 [\u@\h \W]\$ I've also tried updating the ~/.bashrc without the export: PS1="\w \$ " Sa...
Here is what I had to do in my .bashrc export PS1="\\n[\\!. \\t - \\w]\\n>" set_title() { PROMPT_COMMAND='echo -ne "\033]0;'$1'\007"' } I found this answer useful.
How to set the prompt and tab-title on Gnome-Shell (Gnome 3, centos 7)
1,621,581,088,000
In Fedora 16, when accessing the Windows partitions via the Fedora GUI, it would get mounted on /media/. They were visible as /media/Data etc and I was able to navigate into those partitions via the terminal. But now I see the partitions mounted on the GUI, but they're not visible in /media/. Could you help with navig...
Fedora uses as standard the gnome desktop. Gnome uses a virtual file system called gvfs, to represent network shares. They are not mounted to a specific mount point. If you want to browse those mounts via terminal you have to use the gvfs tools (gvfs-*). If your partitions are mounted the old way then just type mount ...
Fedora 20: How to navigate to Windows partitions via commandline?
1,621,581,088,000
I recently started using a bash script to setup terminal workspaces for myself, and everything worked fine for the first couple of days. I run the script, and four or five or seven terminals pop up, all in precisely the right places on the screen, all cd'ed into the proper directories, ready for use. This morning I in...
Append an & to the end of each gnome-terminal command to make sure each terminal starts in the background. If you haven't killed them sooner, the terminals will exit when conky exits and kills all child processes.
Script that spawns terminal windows suddenly waiting for each window to close before opening the next one
1,621,581,088,000
Trying to create a command that rename terminal title and run a application, I'm adding the commands inside .bash_aliases file. The rename command I'm using is: PS1='\[\e]0;test\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' If I use it alone and after run the application it works as expected. But if I use the comm...
The alias is not working because the shell prompt waits until your program finishes. A solution to this is by first calling to your command ./rpcs3/rpcs3-v0.0.25-14385-b639f3c8_linux64.AppImage and run it in background: alias rpcs3="./rpcs3/rpcs3-v0.0.25-14385-b639f3c8_linux64.AppImage & PS1='\[\e]0;test\a\]${debian_c...
Rename terminal title && run application using alias
1,564,841,499,000
I used instruction to customize my terminal profile. Renamed terminal titles. I saved terminals with: gnome-terminal --save-config=/tmp/term-cfg I restored terminals with: gnome-terminal --load-config=/tmp/term-cfg All my titles was replaced with full directory path. So instruction did not help me with title saving....
It seems i can not find correspond command to solve the problem. So I created recommended script. This script has some problems but better than nothing. Before use script i need install xdotool with command. apt-get install xdotool to restore saved terminal i use: gnome-terminal --load-config='my path to script' But...
Load terminal configuration with my titles
1,564,841,499,000
I started using Sublime Text 3 to compile my FreeFem scripts (interpretator PDEs package solver) under Ubuntu 14.04. To invoke the interpretator I customized the build system as follows "shell_cmd": " gnome-terminal -x sh -c \"FreeFem++ $file ; exec sh\"" Every time I run compilation I want to create a separate termi...
Ctrl+C kills the shell as well as the FreeFem subprocess, because the SIGINT signal is sent to the whole foreground process group. Since the shell is not interactive, the subprocess runs in the same process group. See Why is SIGINT not propagated to child process when sent to its parent process? and What is the purpos...
Ctrl+C process termination without Terminal killing
1,564,841,499,000
I have hit a few CTRL- in command line and I see the text in the terminal getting smaller with every invocation. What is going on here and is there a way to redo ie magnify the text to bring it back to the original size via a command? Edit: As per Christopher's suggestion in the comment I can get back to my original ...
It's a somewhat standard keyboard shortcut (it works in Konsole, too). It's simply bound to reduce font size (and simmetrically, Ctrl+ to increase font size). You can easily disable/modify by going to the shortcuts preferences: Edit ▸ Preferences ▸ Shortcuts.
Why does hitting "Ctrl minus" in the command line shrink the font size?
1,564,841,499,000
I use Linux terminal in Ubuntu. When I write seq 100 1 | less & to run it it in the background, it just stops. I used other ways to run it on background too, like using bg [jobnr] but it just stops. I find the job number, and write bg 1 (when it's 1), but then I check the process and it's not running. The same happens...
less cannot run in the background because it's trying to interact with the controlling terminal, which cause it to be forcefully stopped. Only a foreground process can read from the terminal or change the terminal settings. When a background process tries to change the terminal settings, it gets a SIGTTOU signal. When...
Why can't some processes run in the background in Linux terminal while others can, despite all being able to print to the terminal?
1,564,841,499,000
I want to be able to launch a terminal emulator (preferably gnome-terminal) with interactive zsh running inside using a custom prompt string. I don't want to modify my default prompt string in .zshrc because I use that most often and it is just occasionally I want to launch a terminal with a custom zsh prompt string (...
In zshrc, allow for overriding RPS1 by setting it as: # If rps1 is not set, use a default value RPS1=${rps1-"Your usual RPROMPT"} Now you can launch a command with a different RPS1 by setting rps1 in its environment, for example: rps1=%T gnome-terminal The parameter expansion form ${param-word} allows RPS1 to be ...
Launch new terminal instance with zsh using custom prompt string
1,564,841,499,000
When I try to use write to talk to users logged into an X session results vary depending on which terminal they are using. Gnome terminal can pick up writes, but neither lxterminal nor terminator can. The reason is that lxterminal and terminator don't have associated pts devices: With lxterminal(s) running: $ who tsha...
Original question All of the mentioned programs have a pts. The problem is not that your specified terminals don't have a pts device but that the information isn't recorded. Why doesn't lxterminal or other terminals show up in who who retrieves it information from a utmp file, typically /var/run/utmp and is written t...
Why do only some terminals get a pts
1,564,841,499,000
For an application, I need to open a new terminal window and later execute some commands in that. I tried the command gnome-terminal And it works properly, it open a new terminal, but when i want to send commands i cannot, it says that failed parsing arguments, so I'm not sure about how should i do it gnome-terminal ...
This requires a two step process. you need to start gnome-terminal running a program that waits for commands to be "sent in" you need to speak to said program to make it execute the things you want it to execute. The right syntax to start gnome-terminal with a command to execute is gnome-terminal -- command not gno...
gnome-terminal how to send commands
1,564,841,499,000
What is the meaning of this code: gnome-terminal --tab -e "sh -c 'ch/home/Desktop'"\ could you tell me the meaning of each part of this code, one by one?
I'm afraid that code doesn't mean much, most likely. The breakdown is: gnome-terminal: this is the default terminal emulator of the Gnome desktop environment. This command will open a terminal, everything that comes after it is options and arguments that modify what gnome-terminal will do. These are: --tab : this wi...
meaning of this Gnome terminal script
1,564,841,499,000
I am currently using Manjaro (Juhraya 18.1.5) and I use [guake] [1] as a dropdown terminal. I have set a transparency on it and wanted to launch it as a start up program. But after logging in, I find no transparency of the background. Everything else works perfectly fine. If I quit it and relaunch it, transparency wor...
About my system information... I am using Kubuntu with KDE plasma v:5.18.5. Here is what I did. I installed "gcc" from the terminal window.The "gcc" is a program that translates the C language text code in machine code. I have have created a text file, called "start-guake.c" and then I written the code in that text...
Transparency settings for my drop down terminal is not loading at start up
1,564,841,499,000
I installed Solaris 10, but I want change the background terminal color to black. Is there any way to see my text in color mode with vi editor too?
You can change the default colors of your terminal emulator, whether it is dtterm, gnome-terminal or even xterm (reverse-video), using its configuration menu. Solaris 10 standard System V vi doesn't support syntax coloring. You need to install and use vim or elvis to get it.
Change terminal color in solaris 10
1,564,841,499,000
When I press Ctrl + Alt + F1 the desktop environment disappears and a terminal window appears. Pressing Ctrl + Alt + F7 brings me back to DE. This terminal is useful when the DE hangs for some reason and I need to kill a process or something. However the keyboard typing speed in this terminal is so fast that its alm...
What you get when you press Ctrl + Alt + F1 is not Xterm, or anything to do with X or your DE. It is called a TTY (a shortening of TeleType, see here for some history). The command you want is kbdrate. The -d option lets you set the delay before it starts repeating keys, and the -r lets you set the rate at which keys ...
How to change keyboard speed in the Linux console? [duplicate]
1,564,841,499,000
In Gnome Terminal (Version 3.44.1 for GNOME 42), the shortcut ctrl+L clears the terminal (similar to the clear command). There does not appear to be an entry for this in the shortcut preferences. How can I disable it?
You did not tell us what your shell is. Bash Bash uses readline. In your Bash bind -p | grep C-l probably prints: "\C-l": clear-screen (possibly among other lines). To disable Ctrl+l, you need to remove this binding. In Bash the command is: bind -r "\C-l" To disable permanently for Bash, put the above command in yo...
Disable shortcut 'ctrl+L' which clears the terminal
1,564,841,499,000
Recently i switched from kali live to a external drive and installed kali with the installer. I updated everything but since the switch my terminal commands do not turn blue anymore. I have searched for answers and tried to fix this but without results. The steps i tried you can find in the following links: https://as...
In terminal execute: sudo chsh -s /usr/bin/zsh your_username Then, re-login and open terminal again, it should be what you're looking for.
Commands don't turn blue/green in terminal
1,564,841,499,000
I switched a few days ago from xfce4 to cinnamon. Quite an improvement in usability. However, I miss the function of the xfce4-terminal that I can mark text and that it is automatically copied to the cliboard. Wasn't able to find it in the gnome-terminal settings, manual and a startpage-research did not give any resul...
I found a work-around, which is even better: Anything you highlight in Linux, regardless of the program, is put into a special clipboard buffer, which you can paste using your mouse's middle (wheel) button (which is emulated on many laptops by pushing both buttons at the same time) source https://superuser.com/a/307...
Gnome-Terminal mark text > copy to clipboard (like in xfce4-terminal)
1,564,841,499,000
I have an application launcher that executes a command inside gnome-terminal with the -- option, but whenever I go into the terminal and try crtl-z to try to suspend the command and move it to the background nothing happens. My search found a bunch of posts about launching interactive shells in bash, but nothing I've ...
bash_in_gnome_terminal(){ local IFS printf -v cmd %q ". ~/.bashrc; set -m; $*" gnome-terminal -- bash -c "bash --rcfile <(echo $cmd)" } bash_in_gnome_terminal tail -f ~/.xsession-errors bash_in_gnome_terminal 'grep -r pattern dir | less' This solution is complicated (and crippled!) by the fact that the g...
gnome-terminal - Execute command with ability to suspend
1,581,875,232,000
Lets say I have top or some ncurses program running in a graphical terminal, and from outside this terminal I'd like to execute a command, that would replace top with another program of my choosing. I imagine there to be a generic approach to this, something that finds the PTY for the correct window kills the program...
To my knowledge there is no generic solution to do this. The tmux client is running in a pty which belongs to gnome-terminal, you can't change the pty gnome-terminal is talking to or change the program the pty belongs to (either the master or slave end) without gnome-terminal's participation or without some seriously ...
How to replace program running in graphical terminal with another program?
1,581,875,232,000
compare the following screenshots of terminal
Selecting by default swaps the foreground and background color of the affected cells. (An explicit highlight color can be configured in GNOME Terminal's Prefences, or switched to using the OSC 17 / 19 escape sequences. But let's stick to the default behavior for now.) If a space becomes yellow (orange, brown, whatever...
Why are some blank spaces yellow when selected?
1,581,875,232,000
As I'm using bash on my Desktop, I have a multi-tab Gnome Terminal window with 6 to 10 shells opened in there. When I log out of my X session, my ~/.bash_history gets updated in some random way... (at least if you ask me, I have not found a clear pattern to it.) I'm wondering whether all the history from all the shel...
Check this out : HISTFILESIZE=400000000 HISTSIZE=10000 PROMPT_COMMAND="history -a" shopt -s histappend http://mywiki.wooledge.org/BashFAQ/088
Can we change how bash_history gets updated? [duplicate]
1,581,875,232,000
What I'm trying to do: Load an alias The alias: alias notes='cd ~/project/notes' My system: Ubuntu 16.04 and gnome terminal 3.18.3 In my home directory there are the following bash related files: .bash_history .bash_logout .bashrc .profile I have written this alias in .profile but it is not being loaded. I also cr...
Edit .bashrc nano ~/.bashrc Add alias notes='cd ~/project/notes' and save file. Run . ~/.bashrc to activate the alias in an existing terminal.
how to load a bash alias for graphical terminal emulator
1,581,875,232,000
I have a folder with symlinks which are pointing to other folders, how can i recursively look into those folders? I would like to do a grep on those results to search for matches. doing tree will only list the symlink as files.
You can use find with the -L option, e.g., find -L . -type f -exec grep foo {} \; That makes find follow symbolic links. Quoting POSIX: -L Cause the file information and file type evaluated for each symbolic link encountered as a path operand on the command line or encountered during the traversal of a file h...
Tree/Find command on symlinks
1,581,875,232,000
This works with xterm (see https://unix.stackexchange.com/a/739977/119816) xterm -e "echo hello; bash" but doesn't with gnome-terminal. What is the equivalent way of doing this with gnome-terminal? gnome-terminal -- "echo hello; bash" Gives this error: I've tried various ways of quoting but no success. Some tries...
bash -c should not be in the quotation. Try the following: gnome-terminal -- bash -c "echo hello; bash" I am using this one for example: gnome-terminal --window --title "neovim" -- sh -c "nvim" This just executes the nvim binary with sh in a new gnome-terminal window with the title "neovim". In my case sh is just a ...
How do I run gnome-terminal passing in arguments to a command and keeping the command window open and interactive
1,581,875,232,000
I have a script which unexplainably forks a new Terminal instance on some Linux distributions... I'd rather it doesn't do this. Oddly, when I run the script directly (./install.sh) the additional Terminal instance doesn't get created. curl qz.sh | bash # warning this will install a Linux Desktop App you may not want ...
The reason a terminal isn't created when running the installer directly is that makeself uses tty -s to determine whether it's already running in a terminal or not, see the source code on GitHub. When running curl qz.sh | bash you're opening a pipe that's not there when running the script directly, causing the tty -s ...
curl pipe script forks a new Terminal window
1,581,875,232,000
When I have a gnome terminal open, is there a command that will allow me to programmatically enquire of this gnome terminal: How many tabs the gnome terminal has open on it? What is the pwd of each of these tabs? I lose my virtual machine in the evening, so I want to write a script to store the above information, ...
You can enumerate the open windows and tabs using dbus; going straight for tabs: dbus-send --session --dest="org.gnome.Terminal" --print-reply /org/gnome/Terminal org.freedesktop.DBus.ObjectManager.GetManagedObjects | grep -c /screen/ will tell you how many are open. If your shell cooperates with VTE, GNOME Terminal ...
What commands will allow me to programmatically enquire of a gnome terminal: how many tabs it has, and what are their pwd's
1,581,875,232,000
i have a script to launch gnome terminal with multiple tabs. The tabs are opened based on a list of directories listed in .tabs file that are in the same dir as the script. I create a string with several --tabs --working-directory /some/dir one for each line in the tabs file. before i run the command i echo it to the ...
Use arrays for storing separate arguments. Using strings makes the shell confused when it later tries to split them up on whitespaces. TERM_LIST_PARAM=( ) Followed by, tab_line=( --tab --working-directory="$tab" ) TERM_LIST_PARAM=( "${tab_line[@]}" "${TERM_LIST_PARAM[@]}" ) # or: TERM_LIST_PARAM+=( "${tab_line[@]}" ...
gnome-terminal doesn't open tabs properly from my script
1,581,875,232,000
I currently work in hardware development, at present frequently connecting/disconnecting/rebooting device(s) connected to the serial ports. (Usually just /dev/ttyUSB0) I have a basic script to monitor the serial port, which runs in its own small gnome-terminal window in one corner of my screen, so I can "at-a-glance" ...
You can put in this script in your monitorSerialPortsLauncher #!/usr/bin/env bash script=/tmp/monitorSerialPorts cat << 'EOF' > $script #!/usr/bin/env bash sleep 10 while true do clear printf "\n Serial Devices: " ls /dev/ttyUSB* 2> /dev/null || (clear ; printf "\n No Devices Detected") sleep 2 done EOF chmod...
How to pass a script to gnome-terminal in one file?
1,581,875,232,000
I'm using Gnome 3.30 and beyond org.gnome.Terminal.desktop, I have two additional .desktop files with Exec=gnome-terminal --window-with-profile=XXX, where profile XXX uses custom command ssh kalle@XXX, so I can easily open terminals to work on my other machines. What I don't like, especially when working with multiple...
I found a solution. Since 'org.gnome.Terminal' sounds like a D-Bus service name, I took a look at the syslog after opening a terminal. The important part is: dbus-daemon: Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' I speculated that creating a new service with name 'o...
Gnome: Possible to get each instance of an application associated with the icon which was used to start it?
1,581,875,232,000
Backstory: I'm working with a piece of software that uses CMake for several build options. On my desktop build system when I execute a 'Processor Reset' command the program exits cleanly, but needs restarted with a different set of parameters. (The functionality works correctly on hardware, so I do not wish to modify ...
Thanks to slm for pointing me in the right direction! # Start the program with Power-On Reset # Use tee to print output to terminal and pipe to grep # grep returns 0 if the string is found sudo ./program -PO | tee /dev/tty | grep -q "Processor Reset." # Store the grep exit code in a variable result="$?" # If result ...
Restarting an executable based on terminal output
1,581,875,232,000
I tried this: x-terminal-emulator --command="printf 'New terminal emulator is opened for input'" But it only opens the terminal window without printing anything! If I tray: gnome-terminal --command="printf 'New terminal emulator is opened for input'" it does nothing!
Try: gnome-terminal -x sh -c 'printf "New terminal emulator is opened for input\n"; exec bash' Source and more things you may be interested about here: https://superuser.com/a/198022/755698 An alternative is : gnome-terminal -e 'sh -c "printf \"New terminal emulator is opened for input\n\";sleep 10"' In the first ...
How to open new gnome-terminal that launches a command?
1,581,875,232,000
My python script containing import matplotlib.pyplot as plt was not working and one of my classmate suggested to remove one of the python packages. (My dell ubuntu 12.04 desktop has two python programme 2.7 and 3) So, I run the command sudo apt-get remove python. Now my terminal and unity launcher is missing. How can ...
try sudo apt-get install ubuntu-desktop that should install the base meta-package with all the dependencies,but since you are using 12.04, if that does not work, try: sudo apt-get update && sudo apt-get dist-upgrade
Terminal and unity launcher is missing
1,581,875,232,000
My Antergos terminal doesn’t show me any colors when executing scripts. I have a fresh instalation, with no tweaks. I have zsh and oh-my-zsh, but the configurations are the default ones. You can see that all the output is white, it should be colorful: This happen when I install programs, blanks spaces are text: Sel...
The problem appears to have been fixed, but the cause was a hardcoded check for the TERM environment variable equal to xterm. If (as indicated in the question) you had xterm-256color, then the check would fail. You can see one of the diff's which is part of the change to fix this problem in the git repository, in thi...
Terminal doesn't print colors
1,581,875,232,000
I have CentOS 7 running as a guest OS inside a VirtualBox host. I opened a terminal to write some commands, but the colors are all messed up as shown in the following print screen: It looks like text is highlighted, but the light blue against white background makes it nearly impossible to read. How can I restor...
Add this to last line of your ~/.bashrc: unalias ls and type source ~/.bashrc
why are colors mixed up in CentOS 7 terminal?
1,581,875,232,000
I just broke my gnome-terminal. At the options I tried to force my terminal to open with 256 colors adding the command: export TERM=xterm-256color but now my terminal open and exits immediately. How can I remove this command?
Try to run gnome-terminal -x sh or gnome-terminal -e bash (from xterm or directly as command by Alt+F2) and you will get gnome-terminal with sh/bash. Then after Go to: Profiles > Profile Preferences > Command > Custom command (where you've set export TERM=xterm-256color) and make correction
gnome-terminal broke after adding command to initialize
1,581,875,232,000
OS: Kali Linux version 1.1.0 gnome version 3.4.2 Using screen, I press CTRL + a and | but nothing is being split. Only the words "No other window" appears in the bottom. Here is other things I tried CTRL + a and capital S CTRL + a and b CTRL + a and c CTRL + a and | (Pipe key) none of the above fixed it for me...
Try, in sequence: CTRL+a, | # create a new pane CTRL+a, <TAB> # goto the new pane CTRL+a, c # start a new shell in the pane
can't split terminal using screen
1,581,875,232,000
Eve though in dconf the profiles i installed are shown > dconf list /org/gnome/terminal/legacy/profiles:/ :3fab5042-3b59-44c2-b86e-df287109b3d7/ :93be6823-4719-4dea-be06-ebf0ae9091d8/ :Aci/ :Wild-cherry/ :b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ default list In my terminal preferences they are not shown so that i can c...
Okay i found a solution. The problem was with the wrong uuid format like @egmont said. The solution was to export the profiles with dconf dump from another working machine and get the right uuid, than importing those profiles with dconf load. After that i just added those uuids in the /profiles:/list. Ant there was th...
Terminal Profiles not being loaded
1,581,875,232,000
I just checked my timings: it takes about 0.41-0.45 seconds to open a new gnome-terminal window and about 0.55-0.65 seconds to open kitty. And it does bother me a bit that it takes so much time to open (I want it to be close to instant, like UI elements are responding to mouse/keyboard events). I want some suggestions...
I found out that only kitty (among those who I tested) can support ligatures. And looking at how it improves, I don't think anything can substitute it for me. And after some research, I found that (probably on a lot more speedy PC) some people manage to open kitty in 0.2s (0.1s to load OpenGL and 0.1s for the rest). A...
Time it takes to open a new terminal window
1,671,262,826,000
I am trying to create a bash script that will set up my all development stuff in an instant. What I want the script to do: open 5 different tabs in one window. clear terminal and start firefox-esr. clear terminal and run top command. clear terminal and start development server by using npm live-server. edit a file by...
I just end up by installing gnome-terminal and remove qterminal. Qterminal does not support this --tab option. Script current look #!/bin/bash gnome-terminal --tab --hide-menubar --title="Firefox-esr" --working-directory ~/workshop -- firefox-esr gnome-terminal --tab --hide-menubar --title="Server" --working-direct...
how to open multiple new tabs in qterminal with a bash script in debian 11 lxqt
1,671,262,826,000
Is there any way to change Gnome-terminal settings, such as transparency, globally, so that I won't have to set it again and again after restarting i3-wm? I'm using Regolith Linux.
If anyone is interested, I've figured it out. Only thing you need to do is insert these two lines into your Xresources file: gnome.terminal.use-transparent-background: true gnome.terminal.background-transparency-percent: [some number]
Changing the preferences of Gnome-terminal globally
1,671,262,826,000
I'm trying to change the color of "[shark@Archshark ~]$" to blue in the terminal but It seems that I can't change it, please help.
The prompt colour is governed by your shell configuration files. Assuming you use Bash, you can change the propmt colours in .bashrc or .bash_profile files in your home directory. I believe, judging by your prompt, you use Arch Linux, so you may find some information on prompt colours here. For other common shells, lo...
How to change the color of this selected text of the gnome terminal?
1,671,262,826,000
I am on several machines running Linux Mint 20.1 "Ulyssa" - Cinnamon (64-bit), link to web, with Bash 5.0.17 as my default shell. Today, I decided I customize my prompt and window title of my terminal emulator, which is GNOME Terminal. I've known from the past this can be done for example per user in their .bashrc fil...
For a reason unknown to me, it was only necessary to escape the $ (dollar sign) in front of PWD in the window title definition on this one line: xterm*|rxvt*) PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u @ \h : \$PWD \a\]$PS1" ;; I tested it somewhat and now preparing to deploy it on all machines.
Full path in terminal prompt and title-bar with modified PS1 in .bashrc
1,671,262,826,000
When Starting Fedora linux after uninstalling / removing Cinnamon Desktop Environment I got login screen but after trying to log in I got black screen in Gnome and KDE . After that I tried to go in tty and try to issue any command but , I got this dnf command not found , ls command not found message / error . SCREENSH...
Looks like your profile is busted. Login under root and create a new user account. Copy/move your old data from the old user to the new one. If you don't remember root password reboot and add init=/bin/bash as a kernel command line argument, issue passwd, set a new root password, run sync and then reboot. Alternative...
Black Screen , no command found in fedora
1,671,262,826,000
I've installed gnome-terminal and xorg-server-xwayland and now I am trying to launch gnome-terminal. I already had an error caused by keycodes above 255. I deleted the keycodes above 255 and the problem get resolved but I've got an other problem : [...] glamor: No eglstream capable devices found [...] # Error constru...
I found my problem with the help of https://askubuntu.com/questions/608330/problem-with-gnome-terminal-on-gnome-3-12-2 . I didn't set my locale correctly, I put "lang" instead of "LANG" in my /etc/locale.conf ^^' When I've set it correctly, I just reboot my computer and it works !
Error when launching gnome-terminal on Sway
1,671,262,826,000
I am unable to determine the cause of this, but the day prior when using su to enter my password for installing an application through the terminal, the authentication has been successful. So far, I am uncertain on how to resolve this issue. I use a Fedora 29 GNOME OS. [Machine-Replicator@localhost ~]$ su Password: s...
The su command does not accept your password. You must use the target user's password, which in your example shown is the root password. Are you perhaps muddling su with sudo, which does take your own password for authentication?
Using su results in the message: Authentication failure on Fedora 29
1,671,262,826,000
Whenever I open the (Gnome) terminal from my Fedora 26 system this line is being displayed first before the command prompt: -bash: /home/kiran/AIPS/LOGIN.SH: No such file or directory I understand that on each start up the terminal is trying to read the above mentioned file. I find this irritating. Why is this hap...
Based on one person's installation guide I suspect you have an AIPS-related line in your ~/.bashrc file; edit that file and remove the line that reads something like: . ~/AIPS/LOGIN.SH It could use variations such as: source ~/AIPS/LOGIN.SH or source $HOME/AIPS/LOGIN.SH Search for the text AIPS/LOGIN.SH and you sho...
Bash terminal trying to read a previously installed file on each start up
1,671,262,826,000
i want to open a new terminal and execute a script immediately to it (to set a title in the new tab) and i cannot configure this. I try: gnome-terminal --tab-with-profile=$varname -x ./test.sh -c "script -a -c 'ping $varname' $PATH_REPORT/$varname.log" Any help how can i execute the test.sh script which contains: PRO...
You can simplify your solution so that you only need to specify the hostname once. The test.sh script can set the prompt directly with the echo command and then run the ping you want. $ cat test.sh #!/bin/bash echo -ne "\033]0;$1\007" script -a -c "ping $1" $PATH_REPORT/$1.log Now you can call this with gnome-termi...
Execute script in new tab command line gnome-terminal
1,671,262,826,000
I'm new to scripting, but somewhat familiar with Linux. I am actually using this on a Fedora16 build, with Gnome3 and gnome-terminal... fyi. I flip through all sorts of ssh terminals all day long and I thought it would be nice to create a ssh script called lambda that contains information that is sent to a terminal_w...
Please, use this command: gnome-terminal --title=$2 --command "ssh $1@$2" --window &
Creating SSH Terminal Wrapper
1,671,262,826,000
I would like to capture the stdout (as sent to a terminal), and perform some processing after it is output on the terminal (for the user). I want to know how to grab the output, process and make changes accordingly. (If possible) I want this to happen for every command I type on the terminal. Edit: After a dialogue i...
Well, maybe it is not a good idea to grab the output, process and display the output of every command you type on the terminal. But you can do it for some particular command via tee your-command | tee saved-output | processing-tool When you have seen the result from the processing-tool, you can look at the saved-outp...
Capture output of a command, process it and ONLY then output to terminal
1,671,262,826,000
I have written a shell script named startup.sh which does a lot of things (basically start a lot of things for me after turning on my local machine) - here is an excerpt: #!/bin/bash gnome-terminal --tab & veracrypt --auto-mount favorites & thunderbird & ~/Application/IDEA/bin/./idea.sh & /usr/bin/slack & echo myuser...
When you start a script with '< dot> < space> < script_name>' and you have in your script "exit", your window will be closed. The dot notation means you run it within the window and then the "exit" means to exit the window, not the script itself. Try to add >/dev/null 2>&1 to each of the line (before final &) to find ...
How to properly write and execute a shell script and exit correctly? [duplicate]
1,671,262,826,000
When I open gnome-terminal, instead of presenting me with my default Bash shell, it shows: sh-4.4$ This began happening since I added DISPLAY=:0 to my crontab -e file which now looks as follows: DISPLAY=:0 0 0,6,12,18 * * * /usr/bin/gnome-terminal -e /home/orschiro/bin/updates.sh 0 0,6,12,18 * * * /usr/bin/gnome-ter...
I'm assuming this is the gnome-terminal started from your cronjob. There is absolutely no need to run the cronjob scripts inside gnome-terminal. Doing so would mean that the jobs would fail if gnome-terminal could not be opened (which would probably happen if you weren't using the desktop at the time). Just use 0 0,6,...
sh-4.4$ how to log back into my default shell terminal?
1,339,090,327,000
I use screen for my command-line tasks while managing the servers where I work. I usually run small commands (mostly file-system tasks) but sometimes I run more extensive tasks (like DBA). The output of those tasks is important to me. Since I use Ubuntu and OS X (both Terminal Windows) for my tasks, yet I need to use ...
Screen has its own scroll buffer, as it is a terminal multiplexer and has to deal with several buffers. Maybe there's a better way, but I'm used to scrolling using the "copy mode" (which you can use to copy text using screen itself, although that requires the paste command too): Hit your screen prefix combination (C-...
Scroll inside Screen, or Pause Output
1,339,090,327,000
From vi, if you issue the command :sp, the screen splits into two "views", allowing you to edit more than one file from the same terminal. Along those same lines, is there a way to have multiple shells open in the same terminal?
You can do it in screen the terminal multiplexer. To split vertically: ctrla then |. To split horizontally: ctrla then S (uppercase 's'). To unsplit: ctrla then Q (uppercase 'q'). To switch from one to the other: ctrla then tab Note: After splitting, you need to go into the new region and start a new session via ct...
How to split the terminal into more than one "view"?
1,339,090,327,000
I am working on a remote Debian Jessie server. I have started a screen session, started running a script, then been disconnected by a network timeout. Now I have logged in again and want to resume the session. This is what I see when I list screens: $ screen -ls There are screens on: 30608.pts-8.myserver (11/0...
The session is still attached on another terminal. The server hasn't detected the network outage on that connection: it only detects the outage when it tries to send a packet and gets an error back or no response after a timeout, but this hasn't happened yet. You're in a common situation where the client detected the ...
Can't resume screen, says I am already attached?
1,339,090,327,000
Browsing through questions I found about tmux (I normally used GNU Screen). My question is what are pros and cons of each of them. Especially I couldn't find much about tmux.
From their website: How is tmux different from GNU screen? What else does it offer? tmux offers several advantages over screen: a clearly-defined client-server model: windows are independent entities which may be attached simultaneously to multiple sessions and viewed from multiple clients (terminals), as well...
tmux vs. GNU Screen [closed]
1,339,090,327,000
I have a running program on a SSH shell. I want to pause it and be able to unpause its execution when I come back. One way I thought of doing that was to transfer its ownership to a screen shell, thus keeping it running in there. Is there a different way to proceed?
You can revoke “ownership” of the program from the shell with the disown built-in: # press Ctrl+Z to suspend the program bg disown However this only tells the shell not to send a SIGHUP signal to the program when the shell exits. The program will retain any connection it has with the terminal, usually as standard inp...
How can I disown a running process and associate it to a new screen shell?
1,339,090,327,000
I accidentally created over 1000 screens. How do I kill them all with one command? (Or a few)
You can use : pkill screen Or killall screen In OSX the process is called SCREEN in all caps. So, use: pkill SCREEN Or killall SCREEN
How do I kill all screens?
1,339,090,327,000
I've accidentally attached to a 2nd GNU screen session from within an existing screen session and cannot detach or issue commands to the inner screen. I remember figuring out how to do that before but completely forgot and would like to keep it as reference. One way is to detach the inner screen by doing screen -dr fr...
ctrl-a a d
How do you detach the 2nd screen from within another screen?
1,339,090,327,000
When I type screen -r I expect to either see: A list of screens to resume, or a message "There is no screen to be resumed." Today, I see there is one screen, but I still get the message that there is no screen to be resumed: [root@server chiliNUT]# screen -r There is a screen on: 27863.pts-1.server (Attach...
As screen -r says, there is one screen, but it is attached. To resume it on your current terminal, you have to detach it from the other one first: screen -d -r 27863, see manpage -d. Edit: use -d instead of -x. Edit2: @alex78191: When using -x, screen attaches to the currently running session, resulting in a "multi-d...
there are screens in the list, but "no screen to be resumed"