Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [bash]

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

0
votes
1answer
16 views

Shell prompt: \W shown as '\w', left puzzled

TL;DR: PS1 is not as it's supposed to be. PS1="\W" shows as \w█ the block being the blinking cursor. The folder name will appear only after directory change. OS is Debian 9.9 Stretch. I'm not quite ...
0
votes
1answer
26 views

Shell: How to create a user with the same password with another user?

Linux has a user, root. It has a password, unknown to the shell script. No human can input anything for the script. The script wants to create a user, user001, with the same password with root. ...
0
votes
0answers
16 views

Bash.exe won't open

I've been trying to install bash on my computer using this guide: https://www.windowscentral.com/how-install-bash-shell-command-line-windows-10 Everything works except when I try to open bash.exe to ...
0
votes
0answers
14 views

How to delete commands from iTerm2's command history (Cmd+Shift+;)

I like the iTerm2's Command History feature, Cmd+Shift+;, to quickly find a command from the history. But there are some commands that I want to remove from the list, I already run command like sed -...
0
votes
1answer
14 views

Lost /home mount, how to create the default config files for the users which are already present?

I have lost access to /home. Here is the message I get when I log in: -bash: /home/chinde/.bash_profile: Stale file handle I want to create the default files .bashrc, .bash_profile for the users. ...
-1
votes
0answers
8 views

How to parse WPS fields from iw wlan0 scan output?

Trying to parse router related information through some script way. So associated router info usually present within "iw wlan0 scan" output. There is this post which provides a solution for parsing ...
1
vote
0answers
31 views

vim/neovim reverse shell vulnerability - why does this work?

Warning This question includes code from the original description of the vulnerability and proof of concept file. It will in the worst case open a reverse shell that may grant privileges to other ...
2
votes
1answer
29 views

Most efficient way to print all lines with duplicated field?

The following file, fruit_notes.txt, has three pipe-separated columns: fruit, color, and tasting notes. I would like to print all lines that have a duplicated color field. Order is not important. ...
0
votes
0answers
26 views

LXDE GUI suddenly disappeared

I attempted to full upgrade my Debian Jessie, only for it to fail, and when I come to turn my PC on i'm faced with the Bash coding screen (Aka no GUI at all). I'm using an LXDE based computer, I used ...
0
votes
0answers
9 views

debugging an already run job using python cython in linux [on hold]

I am running a research job in high energy physics but I have a problem with my output. My professor gave these files that I put the link below here. I ran them. Then I ran them again after doing some ...
0
votes
1answer
17 views

No output in shell from Echo

I'm looking to modify a script I have to stop it running at a certain time in the day whilst my machine reboots. I've found the following suggestion which seems to fit the bill perfectly but for some ...
1
vote
0answers
29 views

find command is picking files of unrelated pattern

I have a following find command which I trigger via autosys scheduler. The command is used to delete file older than X days. find /home/my_home/document -maxdepth 1 -type f -mtime +31 -name "qwer_*" -...
0
votes
0answers
13 views

What do I have to do to continue building the rom?

I'm trying to build a RR (Resurrection Remix) rom for my bq Aquaris X Pro, but after following the steps in this page: https://github.com/ResurrectionRemix/platform_manifest , when I typed "bash build....
2
votes
0answers
13 views

Setting Bash history sizes to -1 clears the history

I want to save all my bash history so I set my Bash history sizes in ~/.bash_profile to negative values: export HISTSIZE=-1 export HISTFILESIZE=-1 According to the Bash reference manual, all my ...
0
votes
1answer
21 views

How to restart service (basically Java program) based on its log?

I have a Java program that runs as a service on Ubuntu 16.04. Probably the only output i get from it - it is a logs(errors, usual prints, etc.). So what i want to do is to whenever there is a ...

15 30 50 per page