Skip to main content

Questions tagged [bash]

Bash is a free shell for Unix-like operating systems from the GNU Project.

2,579 questions with no upvoted or accepted answers
14 votes
1 answer
1k views

Trap on DEBUG signal for the dash shell?

With the bash shell, you can install a trap on the synthetic DEBUG signal. This is useful and will execute your function or bit of code on every shell command. For example: $ trap 'logger -t shell "${...
Cosimo's user avatar
  • 249
9 votes
1 answer
8k views

Convert Linux symlinks to Windows symlinks

I've noticed that Linux symlinks don't work in Windows, and vice-versa. Is there any way to convert Linux symlinks to Windows symlinks? Specifically, I want to convert relative Linux symlinks to ...
Anderson Green's user avatar
6 votes
1 answer
4k views

Ignore certain changes in git diff

Is it possible to get a report from git diff or related commands that excludes a certain category of change? I've been asked to review a change where a huge number of files have undergone the ...
jsharp's user avatar
  • 161
6 votes
2 answers
3k views

Filter tail command through multiple grep commands to separate files

What I am trying to do is filter the output of one log file into separated log files based on a grep filter. tail -f test.log | tee >(grep "Error" > error.log) >(grep "Warning"" > warning.log) ...
Ryan's user avatar
  • 61
6 votes
1 answer
3k views

bash autocompletion is slow, freezing my desktop

sometimes when working with a custom kernel, pressing tab in the bash autocompletes at a horrible pace. It freezes the whole desktop. Then comes back after awhile. This is the only quirk that I've ...
user108754's user avatar
5 votes
0 answers
465 views

Files with long filenames appear as empty

I'm not too familiar with Windows, so please bear with me. I have a folder with several files with very long filenames, that can be listed normally, but if I try to open them with any Windows ...
lhpcw's user avatar
  • 51
5 votes
1 answer
221 views

Ssh X11 forwarding messes up with default shell

I have a bash specific code in my bash profile: $ cat ~/.bash_profile #!/usr/bin/env bash echo "SHELL: $SHELL" function printfiles() { while IFS='' read -r _file || [[ -n "$_file" ]]; do echo ...
kaligne's user avatar
  • 269
5 votes
0 answers
342 views

How to send trackback to arXiv papers from a Jekyll blog?

Sorry, my question was directed from Academia.SE here by the admins. If there is a better place to ask this question, please let me know as well. I have recently noticed that arXiv.org website ...
Xiaodong Qi's user avatar
5 votes
0 answers
472 views

emacs term-mode redraws prompt when backspacing inside executables

I am reliant on emacs (version 24.4.1 on Debian) term and ansi-term modes. They normally work just like xTerm for me, but when running an interactive program that has a prompt (like the node.js prompt,...
jimpudar's user avatar
  • 153
5 votes
1 answer
234 views

GNU screen is slow exiting

I've set up my .bashrc to automatically screen -DRA (even though it's a local session). screen works fine, except that if I run exit from the last window or otherwise close it from the client itself, ...
Viko Riféo's user avatar
5 votes
0 answers
756 views

Name a tab in iterm2, even with pane splits

I see there are solutions to name tabs in iterm2 when there is a single pane, but it doesn't work well with multiple panes/splits. So if I have two terminals open in a split under a tab, I would need ...
theicfire's user avatar
  • 293
5 votes
2 answers
869 views

Ruby commands are turning off tty echo

After running Ruby scripts, almost 100% of the time, the bash command line will appear to be inactive, while in fact it's silently accepting my keystrokes without showing them to me. This has ...
Paul Roub's user avatar
  • 277
5 votes
0 answers
1k views

How to mount SMB share from terminal using keychain?

I need to be able mount a SMB share from terminal, for MAC OS versions (10.7). Is there a way to use mount_smbfs with keychain so I don't get prompt the username/password or have to add it to the ...
Celine's user avatar
  • 51
5 votes
1 answer
731 views

Launch a WSL script through Windows Terminal: node: command not found

I am trying to run a node.js script in WSL from WT using the syntax wsl.exe <command>. However I can't get it to find Node when launched this way and get the following : PS C:\> wsl.exe -- ...
xShirase's user avatar
  • 151
5 votes
1 answer
7k views

How can I run dd as fast as possible?

I'm learning bash, and what with all the confusion around the many, many different ways there are to zero-write a drive or transfer data from/to one (shred vs dd vs pv vs cat vs tee and so on), I'm ...
Hashim Aziz's user avatar
  • 13.1k

15 30 50 per page
1
2 3 4 5
172