All Questions
1,007
questions
1
vote
0
answers
77
views
How could I have VScode on Windows 10 with the default terminal changed to WSL2 Ubuntu-24.04 like a native linux distro?
I'm trying to have inside VScode for Windows 10 (Microsoft Windows [versão 10.0.19045.4474]) options to change the terminal from default to another one such WSL2 Ubuntu 24.04.
I have installed ...
0
votes
0
answers
27
views
Grep’s result coloring, and right-to-left scripts
I have a text file with a single line that contains the single Yiddish word azoy, in Hebrew script: אַזױ. Then I grep for occurrences of the oy character, ױ.
(This is highly simplified of course, in ...
1
vote
1
answer
54
views
Why I can't change the prompt in VSCode's terminal?
I am trying to change the prompt in my VSCode's terminal.
My OS is MacOS Monterey 12.6.
I use the zsh and I change the PS1 in .zprofile,such like this.
Then I use echo to test.The others can work ...
0
votes
1
answer
112
views
ls -ltr on the terminal lists the files but says "No such file or directory" in a shell script
I am new to Bash and am practicing some shell scripts. I wanted to write a script to list all the folders and their file count, if a root path is passed as a parameter value from the terminal. The ...
0
votes
1
answer
68
views
How to do a Proximity text search, 2 + words?
What is a Linux terminal command to do a Proximity text search?
Search a directory, recursively, for files that contain :
2 words or more within
99 characters of each other
any order of above words.
...
0
votes
1
answer
129
views
Linux Bash Wait Command Not Working
I am trying to use and bash file .sh to start other bash files in seperate terminals.
I want them to run one after the other as I use them to copy large numbers of files to the same Hard Drive. ...
0
votes
0
answers
32
views
Unknown terminal: "/tmpERM"
On my Linux headless distro, i have a recurring error where when running some commands ("clear", "nvim", etc.), instead of the expected behaviour of running the command i get an ...
0
votes
0
answers
30
views
Is there any way to create a new window terminal (pseudo-terminal) using a command without setting env $DISPLAY?
I am currently building an open-source utility (plugin), which requires a new terminal window (pseudo-terminal) to become more effective whenever it gets executed.
I was using gnome-terminal to ...
2
votes
1
answer
108
views
tmux doesn't instantly update pane's title
I'd like to have tmux "instantly" update the pane's title to match what is currently being executed in the terminal. For an instance:
If the pane contains the shell then its title should be ...
0
votes
0
answers
41
views
How to match PDF okular colors with Terminal colors?
OS: Kubuntu 22.04.4 LTS x86_64
okular 21.12.3
konsole 21.12.3
to display above:
neofetch --stdout |grep 'OS:'
okular -version
konsole -version
outputs:
ok match color Blue in Terminal with ...
1
vote
1
answer
243
views
TO close Tmux along with terminal (if terminal is closed)
I have configured my Tmux to open with i open terminal by modifying the .zshrc file.
[[ -z "$TMUX" ]] && tmux -u
It worked fine, now I want to close the tmux session when I close ...
0
votes
0
answers
58
views
Failure to use `/dev/pty` for one outside msys2 `bash` when calling it in `vim` installed inherently by git-bash
Env: Windows 11 pro.
I want to call msys2 bash in git-bash's vim where both shares the same version of vim and bash (although this context seems to be weird).
I asked one origin question in Vi/Vim SE ...
0
votes
1
answer
86
views
Changed color settings of ble.sh bash terminal are not applied
I installed the ble.sh from this git repository https://github.com/akinomyoga/ble.sh.git, but i want to customize the color settings with ble-face commands.
What happens is that, I changed the color ...
1
vote
1
answer
97
views
Keep command line visible while scrolling
Unsure what the best place to tackle this would be .bashrc? Using different shell? Some fancy terminal emulator?
Basically, I just want to keep seeing the command line / the last line of the terminal ...
2
votes
0
answers
102
views
Why my terminal throws control characters while using arrows in mysql-client?
I have a situation with remote servers (all Debians) where I get control chars into mysql-client command line when I try to search in history (CTR+R) and try to make the first move:
mysql> update ...
0
votes
2
answers
488
views
How to output a bright Green check mark?
OS: Kubuntu 22.04.4 LTS x86_64
to display above:
neofetch --stdout |grep 'OS:'
Terminal or bash script:
printf '\u274c\n' # works fine. Bright red X.
❌
printf '\u2714\n' # outputs a check mark, ...
1
vote
0
answers
29
views
How to make a script to launch different scripts in different workspaces in linux?
I have limited access to a linux machine, meaning I cannot install any external tools. I want to make a script to open terminals with ssh at different workspaces. However, I found that one way to move ...
0
votes
1
answer
71
views
How to bring a job to foreground and then disable job control in bash?
I have a program running in a terminal window. I wish to disable the Ctrl+Z shortcut from suspending the process.
After pressing Ctrl+Z, the command fg && set +m unfortunately disables job ...
-4
votes
1
answer
630
views
Issue Decrypting File with OpenSSL: "hex string is too short, padding with zero bytes to length"
I'm encountering an issue while trying to decrypt a file using Open SSL. I have a file named fc382Crypto.bin provided by my instructor, and I need to decrypt it using the blowfish algorithm with CBC ...
1
vote
1
answer
105
views
git is unable to properly determine the terminal width (git-bash, windows)
As you can see in the screenshot, the terminal is currently 100 characters wide, and both methods of detecting such that I'm aware of are returning the correct value. Despite this, unless I explicitly ...
1
vote
1
answer
325
views
Default shell zsh but responding bin/bash
I have no idea what I did! I was installing maven and one of the guides had me do something and now I'm stuck in default zsh. I've tried changing my terminal preferences to be /bin/bash, as well as my ...
0
votes
0
answers
65
views
Is it possible to use the signalstats YAVG filter in FFMPEG to control the gamma correction in a video?
I don't know if this is even possible, but something tells me it is… You see, I want to dynamically control the gamma correction in FFMPEG/FFPLAY depending on how bright/dark the frame being ...
2
votes
2
answers
676
views
What is the command line shortcut to uncomment a previously commented line?
Alt+Shift+3 can only comment out, on subsequent invocations simply adding multiple comment characters (hashes) instead of toggling on / off the comment. How to uncomment a previously commented line or ...
0
votes
1
answer
82
views
What command to force dd output to a fixed width of 90 characters?
using:
neofetch --stdout |grep 'OS:'
OS: Kubuntu 22.04.3 LTS x86_64
dd --version
dd (coreutils) 8.32
Background:
re-purpose a disk = objective
some script is being developed
some script will delete ...
1
vote
1
answer
243
views
Why is this tmux option not persisting?
I would like to generate a bashrc configuration file each time I start a particular tmux session, and I want to use my user's default tmux configuration file ${XDG_CONFIG_HOME}/tmux/tmux.conf as well. ...
1
vote
1
answer
482
views
What's the difference between git-bash.exe and bash.exe and how they interact with Windows Terminal?
I've installed Git for Windows.
I want to run git-bash in a Windows Terminal tab.
I initially configured a git-bash profile, in Windows Terminal, whose Command Line field I populated with C:\Program ...
0
votes
0
answers
160
views
How to run sh script in lxterminal using double click on Raspbian
I've read so many threads regarding running a script using double click, but none of the ways describes my case.
My operating system is Raspbian Bookworm (Debian), the graphical shell is LXDE and the ...
0
votes
1
answer
264
views
linux terminator: configure a command on startup and don't close terminal when the command ends
I'm using terminator con Linux, and I have configure my ~/.config/terminator/config file to start at specific folders running certain commands
I added a ; bash (also tried with ; bash && bash |...
1
vote
1
answer
549
views
Symbolic Link not working in sub-directory?
Newbie here. I was learning about ln command. So I created a symlink to a file foo.txt inside another directory bar.
ln -s foo.txt bar
When I try to access bar/foo.txt, I get the error "Too many ...
2
votes
1
answer
2k
views
"set editing-mode vi" vs "set -o vi" What is the difference?
On multiple forums I have come across adding set -o vi to my .bashrc file. Today I saw the option of adding set editing-mode vi to .inputrc.
I googled and both appear to do the same thing. Are there ...
2
votes
1
answer
1k
views
Windows Bash Terminal takes over 10 seconds to load
When starting up Git Bash in a Windows terminal or VScode terminal, the screen is blank for 10 - 15 seconds before it initializes to having a working directory and cursor. After init, it runs fine.
...
0
votes
1
answer
117
views
copying tabs from terminal is broken at the text-wrapping edge (the width changes outcome)
The following code will print "a"s up to the terminal width and then a tab character and then a "b". I've tested both Ubuntu's default Gnome terminals and Terminator and they ...
1
vote
1
answer
87
views
Bash script header for virtual machine
I have a little compiler pet project that generates bytecode for a virtual machine. To run the generated bytecode from the terminal I would always have to invoke the virtual machine with the generated ...
1
vote
1
answer
280
views
How to execute three terminal scripts in three new tabs from Applescript?
I have the following apple script top execute three commands in different terminals. Is it possible to (1) combine this script to make it more efficient and (2) open in different terminal tabs instead ...
0
votes
1
answer
85
views
How to yank text from a kill-ing and instert it at the cursor location in another terminal window?
How to copy, if it is possible at all, a text from one terminal and paste/input it into another without selecting it?
More precisely, within the same terminal window, I can kill the text line by CTRL-...
0
votes
0
answers
102
views
How do Linux terminal programs set up the environment for the shell program
I am writing a terminal emulator in Rust. The source is here. It forks itself and the child process (eventually) becomes the shell program which it reads output from and passes input to.
On macOS, ...
0
votes
0
answers
449
views
tmux status bar showing the terminal's available width and height in pixels
It would be nice if tmux could display the width and height of a current window within its status bar.
I personally use :resize-window -x -y quite a lot, cause I connect from a computer to a second ...
0
votes
0
answers
31
views
How do I make less look like a terminal to programs attached to its input?
Questions like "How do I get grep to pipe color output to less?" explain what flag to give to grep so it'll ignore the fact that less isn't a regular terminal. Is there a way to fool an ...
1
vote
1
answer
65
views
Bash terminals launched from windows UI have an invalid `!::=::\` variable set
When I run printenv one of the returned variables is !::=::\. I noticed that the variable exists because docker does not work correctly with it set.
$ printenv | grep ::
!::=::\
$ docker stack deploy ...
0
votes
0
answers
40
views
How to pass Ctrl+R to the git bash terminal in Visual Studio Code? [duplicate]
Right now while in git bash terminal inside VS Code if I press Ctrl+R nothing happened - VS Code awaits for the second key of chord:
Is it possible to instruct VS Code to pass the Ctrl+R key ...
0
votes
1
answer
65
views
Streaming outputs to another window without running the same commands again on iterm2
First of all, I think every command running consumes some resources.
So if I'd like to have another window displaying the same output of the same commands being run on another session without running ...
1
vote
1
answer
753
views
Windows 10 WSL2 Ubuntu 22.04 no longer starting with bash colors
I'm using Windows Terminal. Added alias to .bashrc colors disappeared. Actually, I did a dumb thing - overwritten .bashrc with
echo 'alias kubectl="minikube kubectl --"' > ~/.bashrc
...
0
votes
2
answers
511
views
Are linux commands (grep, awk etc) part of the system, or the shell?
I'm a developer, so I know my way around a terminal, but I never really dove into it. I can write bash scripts (albeit on a beginner level, not my area of expertise), but I now need to understand ...
1
vote
1
answer
174
views
Why does socat with rich terminal get killed with signal 9 on OSX?
I used the following command from this question to test out using socat to build a terminal with rich signals:
socat file:'/dev/tty',raw,echo=0 exec:'bash -li',pty,stderr,setsid,sigint,sane
On Linux, ...
0
votes
1
answer
658
views
Terminal search with output that excludes directories (as opposed to files within a directory)
I'm trying to do a recursive search in Terminal to find all files that are not folders; this is to confirm that a large directory structure has no content in it. Is there a way to do this?
Starting ...
0
votes
0
answers
140
views
Command not found -bash error
I am noticing that after I did something with terminal attempting to install a program that some third party commands stopped working. For example, I tried installing miniconda with these two ...
0
votes
1
answer
396
views
Checking my understanding regarding the difference between Terminal and Shell
I am trying to test my understanding regarding the difference between terminal and shell. The terminal is just a text-based interface in which it accepts commands from the user. Moreover, the terminal ...
1
vote
0
answers
101
views
.bash_logout not executing on MX Linux
As stated in title no joy from .bash_logout when I exit the terminal (same result when logging in on a virtual i.e. Ctrl + Alt + F1).
I've tried everything listed here: Explain why .bash_logout won...
5
votes
1
answer
481
views
Unix script with a trap inside ssh
My plan is to write a script to debug a remote web server.
Since the debug port is blocked by the firewall, I need to forward the remote port via ssh to my local machine. This part is working fine.
...
0
votes
1
answer
1k
views
How to start tmux session that overrides environment variables set in .bash_profile?
Suppose I have an environment variable set inside .bash_profile: export ABC=from_bash_profile.
$ echo $ABC
from_bash_profile
When I try to create a new tmux session with environment variables for ...