Questions tagged [terminal]
A terminal is an environment for text input/output. Inside the terminal, one runs command-line and text mode programs (including shells).
4,141
questions
1
vote
2
answers
56
views
Linux: Is it possible to have TTY messsages in terminal emulator?
I use LinuxMint21, and I go in TTY only when I have an issue with my X session.
Today, I went to a TTY, and I saw messages about sysrqd, partially disabled (was not expected), and I have some upgrade ...
0
votes
0
answers
7
views
redirect console from virtualbox RHEL guest to Windows host
I have the following setup:
A host machine running Windows 10, with VirtualBox
A guest machine on that host running RHEL
The host has a physical serial port
I need to accomplish the following:
...
-1
votes
0
answers
30
views
'Open in terminal' not working in Download folder
When pressing 'Open in terminal' on any folder in my file manager, nothing happens. I expect that my terminal opens in this folder.
I'm using Arch Linux, file manager is caja, and Gnome terminal ...
0
votes
0
answers
23
views
Unbound variable when passing to npx
I'm trying to create a simple script in my package.json file of my node project
{
"scripts": {
"db:create-migration": "echo 'Enter a filename' && read name &&...
0
votes
0
answers
17
views
why the curl could not access website when using proxy
I am using macOS 13 and set the proxy in terminal like this:
➜ depot_tools git:(d9e2d479) env|grep all_proxy
all_proxy=socks5://127.0.0.1:7890
then I using the curl command like this:
➜ depot_tools ...
0
votes
0
answers
27
views
Duplicate instance of ZSH shell in process list
This seems to be very odd as I've found little to no evidence that this issue has presented to someone else.
When running ps this is the output:
PID TTY TIME CMD
3142 pts/0 00:00:02 ...
1
vote
1
answer
41
views
How to copy and paste in alpine linux VM?
I recently installed an alpine-3.17 VM using virtualbox 7. I also installed the guest additions and are able to map shared folders. But it seems that I cannot copy-and-paste from the host OS.
I copied ...
0
votes
1
answer
16
views
zsh PROMPT coloring doesn't work inside of tmux
I have the following line in my .zshrc:
export PROMPT="%n@%K{9}%m%k:%~# "
It works if I connect directly
But doesn't work inside tmux
How to fix?
8
votes
3
answers
1k
views
Box character doesn't display properly in Linux terminal
I was just writing a C++] program that uses the box characters to display information.
I ran the program on macOS and used the terminal app and it worked fine.
When I switched to Debian Linux using ...
0
votes
1
answer
35
views
How to run software in terminal offline?
I would like to run a flatpak program offline through the terminal (flatpak spoty runs as sudo!). I am looking for a simple command like:
"runoffline" flatpak run application.
What would be ...
0
votes
0
answers
34
views
I'm looking for a remote / networked kind of Terminal or something like this
let's think about this scenario:
Linux as host OS (I prefer Debian) and two different guest OSes, virtualized with qemu and kvm. The first one could be Fedora, the second one Arch.
The virtualized ...
1
vote
1
answer
33
views
Dynamic word wrapping for KDE Plasma terminal emulator (aka Konsole)?
I recently migrated from Gnome to KDE. Gnome was my first and only Linux desktop environment. In Gnome terminal dynamic word wrapping was already implemented by default. I don't see that in KDE Plasma....
1
vote
1
answer
59
views
How to make tail command end itself
In my app I use tail -q -f -n +1 [file name] to read current data of a file (dynamically growing file) and continue reading new chunks until the end. But that command never exits. It stays alive in ...
0
votes
1
answer
35
views
Change Default Directory in Gnome Bash Terminal
I use the bash terminal on Ubuntu Ubuntu 20.04.5 LTS, with the GNOME terminal emulator. When using the terminal, this is the current (default) behavior:
When I open a new terminal session, it starts ...
-2
votes
1
answer
35
views
How to install Apache and DNSmasq tools, without Terminal
How can I install apache server and dnsmasq without using a terminal? Just downloading ZIP files and manually configuring them. The easiest is to install the installation tools from the command line, ...
0
votes
1
answer
16
views
Is it bad that I changed the default application of application/x-trash files?
I was trying to use the mimeopen command to open an image file. I ended up being asked to pick the default application of application/x-trash. I was practicing python and thought I should press ...
0
votes
0
answers
17
views
Programmatically check if current terminal supports OSC52 write?
I would like to know if there is any good way to programmatically check if the terminal the current shell is running in supports OSC52 "write to clipboard" operation, without changing the ...
2
votes
0
answers
24
views
How to systematically troubleshoot a broken gnu-screen installation?
I recently started to work in a shared Linux cluster that a version of gnu-screen that I consider unacceptably old (4.01, from 2006).
I was not able to convince the system's administrators to install ...
0
votes
0
answers
25
views
the way to put the current line at the top of terminal
In a linux terminal, how to always put the current line at the top of the terminal.
I tried z but it did not work, as it only works for vim.
0
votes
0
answers
24
views
Terminal on Mac Error: .zshrc:export:8: not valid in this context: -v
Getting this error whenever I start up Terminal on my Mac:
.zshrc:export:8: not valid in this context: -v
Does anyone know how to fix this?
Last semester I tried to download HomeBrew on my Mac for a ...
1
vote
1
answer
35
views
Finding the occurence of a word in a subfolder
Hello i'm trying to find all occurrences of a word in a subfolder. While that seems to be easy i want that for each occurrence we will display the path and the name of the file followed by ' -> ...
0
votes
0
answers
23
views
How can you increase brightness by a percentage value?
I am fairly new to linux, and I wanted to keyboard map f5 to increase monitor brightness, and f4 to decrease it. Linux (I am using Zorin OS) allows you to map a variety of keys to different functions, ...
0
votes
1
answer
16
views
tmux pan around manually sized window
I have a server-type setup in tmux, with my main server application to the left and some resource monitors to the right. But I'm accessing the server with a computer that has a very small display, so ...
-1
votes
1
answer
40
views
terminal output is broken in docker compose output
Im facing an issue with how the log in docker compose looks like, seems somehow broken as shown below
==> Emulator is ready : '1' is not completely override the previous output "please wait&...
4
votes
1
answer
84
views
Inside less, is there an equivalent of ctrl-Z to recover the pager prompt?
I will occasionally use the pickaxe functionality of git to locate changes of interest. This can be quite slow, obviously (the same would apply to, say, hg grep), but more significantly it is bursty: ...
1
vote
1
answer
61
views
Ubuntu on Windows Terminal Hanging After Creating an Alias for Starship Prompt
Distro: Ubuntu-18.04 (running on Windows 10 WSL2)
My terminal for any new Ubuntu instance is completely frozen with the message "Vim: Warning: Output is not to a terminal"
This happened ...
1
vote
2
answers
106
views
split folder in subfolders keeping parent directories and based on percentage. Using terminal
I have a directory with many subfolders that look like the following, (keep in mind that FA and T1 content is paired and also ..._L, ..._R content). The quantity of folders named here by letters (a,b,...
1
vote
1
answer
42
views
Neofetch: subtitle off battery adds random 1 before colon (separator), and how to (if possible) remove mount info from memory subtitle
Hi here is the output of neofetch:
as you can see the battery outputs
'1 > 99% [Discharging]'
My question is: How do i remove the 1 between and >?
When i put a non icon i have the same ...
0
votes
0
answers
43
views
Gracefully quit "Install macOS Ventura.app" with Terminal
I have a script I would like to deploy to Mac endpoints which would quit the "Install macOS Ventura" installer app if it's open. I'm using the kill -9 <PID> command, and it doesn't ...
0
votes
0
answers
55
views
Trying to change "non command" color in kitty terminal (ver. 0.21.2) using the fish (ver. 3.3.1) shell with the oh-my-fish theme slacker
I've been trying to change the color of non-command such as the picture below (the uncompleated 'help')
link to the theme im using in omf: https://github.com/maqboolkhan/omf-theme-slacker
my kitty....
1
vote
0
answers
49
views
A script causes a parent script to stop
I have a third-party script that runs some complicated stuff.
I run everything from an ssh session (the machine is a headless VM running Ubuntu 20.04).
When I run it interactively, it runs normally.
$ ...
0
votes
2
answers
55
views
How to make lf file-manager to show only one file types?
Basically what I want:
When I browse files/dires with lf, I want to toggle "something" on the way. And only see PDF files, and make invisible any other file-types.
Rationale: Sometimes it's ...
1
vote
0
answers
47
views
How to show actual password while typing in terminal. Not nothing, nor asterisks, the actual characters
I have some disabilities, one of which is trembling fingers. I have seen methods of turning on asterisks via pwdfeedback, but that's insufficient for me, as I sometimes press on the ridge between keys,...
3
votes
0
answers
69
views
How to understand the following quote from termios description
I'm using Mac, following quote is from man termios:
When a controlling terminal becomes associated with a session, its foreground process group is set to the process group of the session leader.
To ...
0
votes
0
answers
39
views
Why zsh doesnt have shift+arrow (left/rigth/up/down) shortcut on VM ARM machines?
I'm a new user of ARM arch (MacOS main OS) laptop, and I don't know why the VM I installed doesn't have this shortcut.
Anyone knows how to add this type of shortcut? I tried a lot of different stuff ...
1
vote
1
answer
49
views
Send and trap SIGTTIN SIGTTOU in foreground process?
From the description of signals (reference), it seems like SIGTTIN and SIGTTOU are sent to a process only if it is in background. Pressing Ctrl-s does stop printing in terminal, if such flow control ...
0
votes
0
answers
12
views
xdotool windowactivate only working with some parameters
For example, I have this window open:
0x02a00019 0 alex-M52AD-M12AD-A-F-K31AD Ubuntu Manpage: xdotool - command-line X11 automation tool - Google Chrome
Typing Ubuntu won't focus the window:
alex@...
1
vote
1
answer
113
views
The "ls" command is only showing a single column
I'm using Windows Terminal to SSH into an Ubuntu virtual machine. When I issue the ls command, the output is a single column, similar to ls -al but without the extra info. I want the output displayed ...
0
votes
1
answer
33
views
Why erase and kill characters do the same thing?
Among the stty -a settings on my machine there are such as erase = ^?; kill = ^U;. The man page reports that
erase CHAR
CHAR will erase the last character typed
kill CHAR
...
-1
votes
1
answer
45
views
REQUEST: Appending {number} to end of file upon transfer
I have thousands of directories, within each directory is a subdirectory with a file called file.jpg. Since each subdirectory has a file called file.jpg I cannot transfer all those files into the same ...
0
votes
0
answers
16
views
Spawning a second terminal with inherited environment
From a shell running in one terminal window, I'd like to be able to run a command that spawns a second shell in a new terminal window, inheriting the environment of the first shell.
With an executable ...
0
votes
1
answer
81
views
Creating & debug of a bash script menu
I've tried a first time with sh like I refer to in my other post here.
I'm trying to run a bash script menu to run from terminal only.
#!/bin/bash
HEIGHT=800
WIDTH=600
CHOICE_HEIGHT=8
BACKTITLE="...
0
votes
1
answer
51
views
How to create custom math command in Unix/Linux?
So, I want to make a factorial command for the linux terminal, and I want to be able to run it like this:
$ factorial 5
120
However, when I look at questions about this, I only see commands that runs ...
1
vote
1
answer
30
views
file not found when executed but exec bit set and accessible by other commands
On my system I'm puzzled by a behaviour I cannot understand: Previously I did install an SDK in my user-local binary path and all the files are there. However bash returns "file not found" ...
0
votes
1
answer
105
views
Unacceptable TLS certificate error in Termux proot-distro
I Installed Flatpak in Debian proot-distro.
$ apt install flatpak
When I run the following command I get Unacceptable TLS certificate error.
$ flatpak remote-add --if-not-exists flathub https://...
0
votes
2
answers
63
views
Terminal Profiles not being loaded
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-...
0
votes
0
answers
234
views
Launching vmshell failed: Error starting crostini for terminal: 22 (LOAD_COMPONENT_FAILED)
I was trying to open the terminal (penguin) in my Chromebook, therefore I clicked on the icon. It loads for a few minutes and then gives out the following error:
Launching vmshell failed: Error ...
1
vote
1
answer
33
views
Can a quiet zip still show warnings for missing files?
I often use zip with the -q flag (actually -r -q) for a quiet operation at the command line. Routinely I also then unzip each file I create, and check by eye whether the contents look correct; before ...
3
votes
1
answer
102
views
Different encoding/Unicode interpretation using terminal vs using shell script
I was working on a keymap script (map keys from one language keyboard layout to another). And after a lot of hard time trying to get everything working I found out that different characters are ...
0
votes
2
answers
64
views
How to get the available and current disk usage in the folder I am right now
I want to see the current available disk space as well as how much the folder I am in is using. Is there some du/df command that not only tells me the size of my folder but also how much is still ...