All Questions
Tagged with terminal command-line
321
questions
-4
votes
1
answer
86
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
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 ...
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 ...
2
votes
1
answer
120
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
53
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
139
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
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:
/...
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....
0
votes
1
answer
30
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
660
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
71
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
220
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
112
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 ...
0
votes
0
answers
75
views
Open file from terminal in already running "pure data" instance
Whenever I xdg-open patch.pd it will open a new pure data instance, how can I make it open with existing instance?
0
votes
0
answers
40
views
PageUp/PageDown -- how to catch properly?
I am here on a tutorial to build a text editor.
I'm finding that on my macOS (it works on a Linux VM), even with raw mode enabled, I'm unable to intercept Page Up and Page Down, which are sent via fn-&...
0
votes
1
answer
136
views
Auto-translation of newline characters in the terminal
I'm following along here.
I notice (this is not complete, just for demonstration) that at this point:
#include <termios.h>
raw.c_iflag &= ~(ICRNL | IXON);
raw.c_oflag &= ~(OPOST);
...
0
votes
1
answer
971
views
Depmod command not found but kmod is already installed
When I use depmod in the terminal, I got the message "depmod command not found". But kmod is already installed.
And I can find a link to something called depmod in sbin.
Do you know how to ...
9
votes
1
answer
2k
views
What does >&- do in a unix / linux terminal?
I'm not too knowledgeable in the Unix command line. I found this SO answer for using the tee command without outputting to stdout, by "closing stdout" with >&- like this:
echo 'hello ...
1
vote
0
answers
190
views
Is there a terminal-based image viewer that enables directory browsing after viewing a single file?
I am searching for a lightweight terminal image viewer like feh,meh, sxiv, pqiv, or qiv, with the end objective of having a terminal image viewer that allows you to explore all pictures in a folder ...
0
votes
1
answer
105
views
What is the number inside the parenthesis on a Linux command? [duplicate]
What is 1? What is 3? What are the numbers called and is there a full list with explanations?
$ whatis nvim
nvim (1) - edit text
$ whatis printf
printf (3) - formatted output ...
0
votes
0
answers
132
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
513
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
1
answer
331
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 ...
0
votes
1
answer
972
views
How to check BIOS Settings from Terminal (CentOS 7)?
I am trying to verify three BIOS settings on remote Linux machines (Dell OptiPlex 3090) with CentOS 7 on them. I want to check AC Recovery is Enabled, Wake on LAN, and Block Sleep.
I've tried multiple ...
2
votes
1
answer
124
views
Arithmetic operation in terminal from an output
I want to print the lines of updates via this command
dnf check-update --refresh --q --downloadonly | wc -l
However during the output there occurs a blank line which means the true update number is ...
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:
...
0
votes
1
answer
1k
views
Display & edit tabular data in the terminal
I'm looking for an app to display & edit CSV files as a tabular data in cells, similar to GUI spreadsheets like LibreOffice Calc.
I just need simple viewing, cell editing & easy navigation ...
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.
...