All Questions
Tagged with terminal command-line
321
questions
-3
votes
1
answer
79
views
Find actual file by only file name, not literally everything non-related
PuTTY/SSH and logged in as root I simply want to find any instances of the file PEAR.php.
I've looked through a dozen different tutorials but they seem to just copy-paste the same instructions. An ...
1
vote
0
answers
43
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 ...
0
votes
0
answers
74
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 ...
2
votes
1
answer
100
views
how to change font size locally in xfce-terminal?
Does anyone know if there's a way to change the font-size in xfce-terminal locally (for just one window), preferably on the command line? It's possible to change it globally (for all terminal windows) ...
0
votes
1
answer
51
views
How to specify that an optional argument requires 2 arguments in a zsh competition script?
I am writing a custom competition function for zsh. Currently, I have the following code
_arguments \
...
'(-G --glitchpct)'{-G+,--glitchpct=}'[Controls how often the characters on screen glitch]'
I ...
0
votes
1
answer
122
views
Permission denied error when starting terminal
I'm getting this error when I start my terminal:
/home/USERNAME/.config/envman/PATH.env:2: permission denied: /home/USERNAME/.local/bin
this is my .zshrc file:
# Enable Powerlevel10k instant prompt. ...
0
votes
1
answer
84
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:
/...
3
votes
3
answers
813
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....
0
votes
1
answer
29
views
The key combination Alt + 6 for copy in nano does not work in GNOME terminal emulator Tilix
The key combination Alt + 6 for copy in nano does not work in tilix
Does anyone know how to fix this? I had a look through all the key commands, but did not find any entry for Alt + 6 being already in ...
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....
0
votes
1
answer
622
views
Are there commands for execute XFCE's menu entries to reboot or power off/shut down?
There is Herunterfahren(DE)/Shut Down and Neustarten (DE)/Reboot:
Is it possible to execute these GUI entries from the command line? If so, what exactly are the commands?
I already checked XFCE's ...
0
votes
1
answer
68
views
When is useful use "silent" for tty?
If the tty --help command is executed it shows
tty --help
Usage: tty [OPTION]...
Print the file name of the terminal connected to standard input.
-s, --silent, --quiet print nothing, only return ...
0
votes
2
answers
210
views
How to know what is the current tab - number or position - for any Window Terminal?
For Ubuntu and Fedora if is opened a Window Terminal through ctrl + alt + t then is possible open a new tab through shift + ctrl + t. Suppose exists a Window Terminal with 5 tabs. If possible go to ...
-1
votes
2
answers
127
views
Why pipe keep sudo and redirection not? [duplicate]
Pipe (|) and redirections (<, <<, >, >>) both using standard streams (stdin, stdout, stderr), but although only pipe can keep sudo privileges, why?
Works:
sudo echo "hello" ...
0
votes
1
answer
110
views
How does vim catch mouse scroll events?
I am writing a text editor.
With 1049 (alternate screen) mode + 1000 (mouse tracking) mode enabled, the terminal is able to catch both mouse scroll events and click events. I do not need the click ...