Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [bash]

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

0
votes
0answers
9 views

auto pagination of terminal output

Octave has a feature to automatically paginate output that is longer than what fits on the screen: How can I achieve the same in a terminal? The accepted answer to a similar question suggests making ...
0
votes
0answers
26 views

How can I change values of the `.ini` files via command line? (linux or windows)

How can I change values of the .ini files via command line? (linux or windows) For example I have a php.ini file: display_errors = On error_reporting = E_ALL & ~E_NOTICE Now, I need be like ...
0
votes
0answers
19 views

Moving domain name from file using bash

Learning bash at the moment, and I know once I have performed wget cisco.com an index.html file appears. I know by doing cut index.html | cut "/" this provides me with just cisco.com. However, what if ...
2
votes
1answer
17 views

Does “git mode” exist for bash?

Honestly, I'm not really sure how to put it, but here goes. Does anything like "modes" (git mode, for instance) exist for bash? What I mean is: I'm using git through bash on Windows. I have ConEmu ...
0
votes
0answers
27 views

Get Filename and numbers from specific length string in bash script [on hold]

I currently have the following in a Batch script: echo Looking for odt file with -00Ramkkar dir /b C:\users\%username%\OneDrive\Ramkkar\-00Ramkkar*.odt >Test.ITTemp setlocal EnableDelayedExpansion ...
7
votes
3answers
1k views

Can't pipe in bash's “mapfile” … but why?

I just want to get all the files in a certain directory into a bash array (assuming that none of the files have a newline in the name): So: myarr=() find . -maxdepth 1 -name "mysqldump*" | mapfile -...
1
vote
0answers
14 views

How to modify the behavior of the commands that delete “words” to the left

I've recently tried switching from being a long time tcsh user to bash and I was lamenting the extra key tapping for deleting "words" to the left, so I've been looking into modifying the behaviors in ...
0
votes
0answers
18 views

Unable to install anaconda distribution (permission denied)

I am trying to install Anaconda on the server machine: LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core- 4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0- amd64:...
-1
votes
0answers
9 views

ICMP echo replay limit with limited packet size

I am going to filter Ping request to my server, and only accepts 20 ping request with length 500 and max echo replay from my server 20. after 20 echo replay ping will be off. how can i do this by ...
1
vote
0answers
18 views

Detach a terminal from a process in D (uninterruptible sleep) state

I have a shell command in stuck in D state (imagine doing ls on a NFS share when the network is down). How do I detach from such a command? I can't kill the process in any way (well, it's called "...
0
votes
1answer
13 views

Bash script for Docker container in Windows returns “Unknown target”

I've downloaded a repository that contains a .sh script to open a Docker container. I'm running Windows 10 with Docker Toolbox (rather than the full version, which has some Hyper-V issues) and its ...
1
vote
1answer
31 views

Bash/Cygwin - aliases not behaving like command

I'm trying to get Cygwin setup the tools I use in Windows and am having some troubles. From this post, I found I could specify Notepad++ as my editor using alias notepad="/cygdrive/c/Program\ Files\ \...
0
votes
1answer
17 views

how to align lines to the left side with sed or perl one line liner

we have the following file how alignment lines to the left side with sed or perl one line liner more conf.env # Extra ssh options. Empty by default. export HADOOP_SSH_OPTS="-o ConnectTimeout=5 ...
2
votes
2answers
32 views

How can I hide the MacBook name and path name in terminal initial line?

When I run terminal I see my username and the path Marc-MacBook-Air:~ Marc$ Can I change it? Iso how can I change it into? Marc$
0
votes
2answers
47 views

Why does terminal output this every time I open it?

Every time I open Terminal, it outputs: -bash: e: command not found Is that normal? If not, how could I remove this? I'm using MacOs Mojave.

15 30 50 per page