Skip to main content

All Questions

Tagged with
-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 ...
John's user avatar
  • 194
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
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) ...
jyoung's user avatar
  • 111
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 ...
Alex.Kh's user avatar
  • 101
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. ...
Ilgar's user avatar
  • 3
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
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 ...
nath's user avatar
  • 5,824
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
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 ...
henry's user avatar
  • 914
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 ...
Manuel Jordan's user avatar
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 ...
Manuel Jordan's user avatar
-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" ...
linuxer's user avatar
  • 27
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 ...
user129393192's user avatar
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?
Leo Zerino's user avatar
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-&...
user129393192's user avatar
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); ...
user129393192's user avatar
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 ...
Chènevis's user avatar
  • 101
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 ...
Oneechan69's user avatar
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 ...
DawsonLeery8913's user avatar
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 ...
Bog's user avatar
  • 1,034
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.
user288609's user avatar
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....
Manfred's user avatar
  • 25
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 ...
user7543's user avatar
  • 256
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 ...
Student1860's user avatar
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 ...
Neptune's user avatar
  • 153
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
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 ...
jzz11's user avatar
  • 11
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
1 vote
1 answer
351 views

Why username and root are missing in linux server after installing tools with conda?

On the Linux server, I have my username that looks like below: (base) [david@meteor ~]$ I tried installing some tools using conda with the following: conda install -c bioconda or conda install -c ...
user9114'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
1 vote
1 answer
271 views

Unable to get terminal prompt when executing script via ssh

I have the below script that works fine when run locally cat /tmp/input.sh echo -n ">> " read env exit; I get the command prompt when i ...
Ashar's user avatar
  • 511
0 votes
1 answer
204 views

How can I create a .txt file containing data being generated in real-time in Linux terminal when a program is running?

I am running an AutoDock Vina program (using a Perl script) in Linux.  It generates lots of important data (regarding binding free energy of protein-ligand docked complexes).  However, I cannot save ...
Alvea Tasneem's user avatar
-1 votes
1 answer
113 views

Reading a file when logged in as another user

I have an issue with the following: I use the following command su -l alice then enter her password. Then I am asked to read the /root/token.txt file. I have tried the cmd "cat /root/token.txt&...
Dai Rhys-Jones's user avatar
0 votes
0 answers
197 views

How to change Linux terminal prompt

I've been using Terminator as my terminal but after reconfiguring my display manager to 'Lightdm' after 'gdm3' crashed while installing updates, I messed something up, not with terminal, using the GUI ...
George's user avatar
  • 1
1 vote
1 answer
520 views

I3 WM bindsym giving error but in terminal, works fine

I have this in my i3 config to restart picom: bindsym $mod+Shift+P exec killall picom; sleep 0.2; picom It works fine in terminal but when I press the keybinding, it shows error, and it just says you ...
Sahaj Bhatt's user avatar
1 vote
1 answer
634 views

terminal not displaying outputs properly

terminal is not displaying outputs properly, it displays outputs mostly like given in the image below while it should display outputs like this any suggestions on how it can be fixed?
knkadnk's user avatar
  • 11
1 vote
1 answer
117 views

Shell scripts: How to copy past outputs of terminal emulator?

I want to make a shell script which copies the past outputs of the GUI terminal emulator (for example, last 20 lines). The motivation is as following: When I execute a procedure which requires long ...
user356126'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
0 answers
76 views

I read "Advantages of using set -o vi" and have a question about same

Followup-up on Advantages of using set -o vi I'm learning vi and know nothing about emacs. I also type poorly and frequently need to edit my commands in the terminal. The idea of using vi to edit my ...
LarryS's user avatar
  • 1
0 votes
1 answer
580 views

Is there a way to programmatically set DISPLAY when executable is run as sudo instead of failing?

When I run any GUI application on Linux (Ubuntu) using sudo command from the Terminal, the application fails with QT error as below. Almost every application fails when attempted; here is an example ...
Vijesh K's user avatar
2 votes
1 answer
769 views

hdparm secure erase with progress updates?

Does anyone know of a clever way to receive any sort of progress status updates using hdparm secure erase? Ideally the end result would be something like dd's status=progress attribute.
andDevW's user avatar
  • 121
2 votes
1 answer
1k views

Creating XFCE4 Application Shortcuts from the terminal (CentOS)

I am trying to add a new application shortcut in the command line which will load the terminal when you press Ctrl + Alt + T. I am using the xfconf-query utility to monitor xfce4-keyboard-shortcuts ...
hymcode's user avatar
  • 83
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
1 vote
2 answers
2k views

How to run simultaneous commands in single terminal

I feel like this should be answered somewhere, but for the life of me I cannot find it so I figured I'd just ask... I'm trying to run 2 commands in my terminal simultaneously, but I need them to run ...
ViaTech's user avatar
  • 111
0 votes
3 answers
4k views

How to extract files recursively but keep them in their own folders?

This is how I'm extracting all the files in a folder (recursively): find -iname \*.epub -exec unzip -o {} \; But the extracted files end up all in the parent folder: Parent (Extracted Epub files) ...
wyc's user avatar
  • 143
0 votes
1 answer
970 views

How to automatically replace mimetype when unzipping?

I'm using the following command to unzip epub files recursively inside a folder: find -iname \*.epub -exec unzip {} \; It works. But the terminal asks me this each time a file is being extracted: ...
wyc's user avatar
  • 143
0 votes
1 answer
443 views

Get free/used ports in a specific range

Is it possible to get either the free or used ports between a specific range? If yes, whats is the command? Thank you in advance!
94Joe's user avatar
  • 5
1 vote
1 answer
2k views

How can I find a program name so I can open them?

I'm a new user in Linux, and I want to know how can I find a name of an installed program so I can open it from the terminal. Is there a way? For example, I use the system on Portuguese language, and ...
user avatar

15 30 50 per page
1
2 3 4 5
7