Skip to main content

All Questions

1 vote
0 answers
49 views

Shell: Customizing the "Display all N possibilities? (y or n)" message

I already know that double-pressing the Tab key on Bash terminal will enlist all files and folders in the current working directory or, when appropriate, show Linux executables that I can run. I want ...
groaking's user avatar
0 votes
0 answers
81 views

Bash terminal lagging one input behind

After a recent update, I've noticed that working on any terminal for more than a few minutes causes a delay between inputting a keypress and seeing it reflected on the screen. Specifically, if I were ...
Nick Reed's user avatar
  • 163
0 votes
1 answer
89 views

inotifywait not listening to DELETE event

I'm using the following bash script to test inotifywait. while true; do inotifywait -r -e modify,create,delete "$DIRECTORY_TO_WATCH" done inotifywait is listening to created files: /...
wyc's user avatar
  • 143
3 votes
3 answers
815 views

Alternatives to file polling?

In the following code, I have to poll $tmp_input to continue executing the code because wezterm cli send-text is asynchronous. This makes sure that $tmp_input is ready. tmp_input=$(mktemp ./tmp_input....
wyc's user avatar
  • 143
1 vote
2 answers
2k views

How to run the command "sudo sh /path/to/script.sh" by double clicking?

I have a question from this thread How to run a bash script by double clicking by entering the path in sudoers?. Since it was explained to me that it is unsafe to grant sudo privileges to the script....
moninah's user avatar
  • 15
0 votes
2 answers
666 views

Confused about bash prompt meaning

I found out that in bash, the $PS1 variable can be modified to change the prompt. The problem is that I'm having some trouble trying to understand the long string of codes that I was given. I did: ...
Kami-kun's user avatar
0 votes
1 answer
184 views

How to source from stdout for both Linux and MacOS?

On Linux I can do: source <(cat .env | grep ANDROID_GRADLE_TASK) But on MacOS, this doesn't do anything (no error, and no source) I have tried to replace -di with --decode --input, it didn't help. ...
Dimitri Kopriwa's user avatar
0 votes
1 answer
537 views

Warp terminal launch through skhd

Did anyone get [Warp Terminal][1] to work with [skhd][2]? I use to use Kitty with cmd - return : /Applications/kitty.app/Contents/MacOS/kitty --single-instance -d ~ I'm trying to get launch it with: ...
Anders Aaen Springborg's user avatar
6 votes
2 answers
3k views

What exactly handles the Ctrl+X shortcut family (e.g. Ctrl+X Ctrl+E) in Linux terminals?

I've seen a lot of online resources mention several compound shortcuts beginning with Ctrl+X : Ctrlx Ctrle : Edits the current line in the $EDITOR program, or vi if undefined. Ctrlx Ctrlr : Read in ...
Alexander Gonchiy's user avatar
0 votes
2 answers
767 views

Run command after file manager (Thunar) window is closed

I am writing a simple script where I need to open a directory dirname with Thunar and delete that directory after closing the Thunar window. I was expecting something like thunar $dirname && ...
soap's user avatar
  • 173
0 votes
0 answers
55 views

How to NOT show the tags?

wadewayne@Cheetah:~$ man sdcv wadewayne@Cheetah:~$ sdcv GNU Found 28 items, similar to GNU. -->McGraw-Hill Dictionary of Science and Technology -->gnu <BR><BR><b>VERTEBRATE ...
Wade Wayne's user avatar
2 votes
2 answers
4k views

Command/script to start a terminal, enter text but don't execute (wait for text to be written, pasted, etc.)

I often write commands in the terminal that I don't know by heart, and then paste some path or file name from the clipboard, before pressing Enter. I thought that it would be fun to do the first ...
cipricus's user avatar
  • 1,629
0 votes
2 answers
45 views

Is there a way to interact with a shell but from an app or separate program?

I am trying to find a way to both receive the output of a shell and then return output, but from a different front end interface? I am trying to incorporate the Linux terminal into a potential ...
James Lindner's user avatar
1 vote
1 answer
66 views

List given folder everywhere it exists

How to get a listing of all occurences of the folder foo (or node_modules in my case) in my home folder, like this: ~/a/foo ~/b/d/foo ~/b/d/e/foo ... My goal is to manually remove all unnecessary ...
DevonDahon's user avatar
1 vote
1 answer
220 views

Making the first word I type on terminal of different color from the others

New here. I was trying to make the first word I type on the terminal of a different color from the others. I have looked into the .bashrc file and /etc/inputrc files. I know that I can make use of the ...
REVOLUTION's user avatar

15 30 50 per page