#StackBounty: #windows #command-line #cmd.exe #colors cmd.exe highlight background color

Bounty: 50

When you highlight text with the Command Prompt (cmd.exe), it just inverts the
colors of whatever you selected:


However the white is a little bright for me, I would prefer gray background. I
changed what I think is the right setting, “Popup Background” under
“Selected Popup Colors”:


However the change seems to have no effect. Can I change the white highlight
color, if so how, and if not via the “Popup” setting then what is the “Popup”
setting for?

Get this bounty!!!

#StackBounty: #windows #windows-10 #command-line #bluetooth Turn on/off Bluetooth radio/adapter from cmd/powershell in Windows 10

Bounty: 100

Such a simple task, one would say, and I haven’t found a satisfiable solution. What I’ve tried (with music playing through a Bluetooth-connected speaker to really know the state of the radio):

  • using devcon as admin: devcon disable USBVID_8087&PID_07DC&REV_0001 (which is the HW ID of my Bluetooth adapter)… requires reboot to work…
  • using powershell as admin: Disable-NetAdapter "Bluetooth Network Connection 3" (which is translation of the name of my Bluetooth adapter)… it disables the PAN driver, but a Bluetooth speaker continues playing music…
  • using net as admin: net stop bthserv… doesn’t actually turn off the radio (BT speaker continues playing music)
  • using .NET: The most relevant page on MSDN doesn’t say a word about turning the adapter on/off.
  • using explorer: ms-settings:bluetooth or explorer.exe %LocalAppData%Packageswindows.immersivecontrolpanel_cw5n1h2txyewyLocalStateIndexedSettingscs-CZAAA_SettingsPagePCSystemBluetooth.settingcontent-ms… opens the Bluetooth settings panel, but I still have to click on the toggle

I can’t believe Microsoft would be so ignorant to not provide such a command…

Get this bounty!!!

#StackBounty: #command-line #permissions #directory Recursively change owner of a directory by that directory's name

Bounty: 100

In Ubuntu 16.04 I have a few website directories under /var/www/html/.

I desire that the owner of each dir will be identical to the dir’s name.

How could I recursively change the owner of a dir by that dir’s name?


1) I’ve already created a user per each directory as in:

useradd ${domain} --gecos --disabled-password --disabled-login

2) The purpose of this operation is of security reasons – to prevent all dirs to have the same owner.

Get this bounty!!!

#StackBounty: #command-line #keyboard #python3 #readline Using readline in python3 (input) pressing arrows will remove text from the in…

Bounty: 50

My input code is:

import readline
readline.parse_and_bind('tab: complete')
readline.parse_and_bind('set editing-mode vi')

while True:
     c = input('INPUT> ')

(It is a little piece of test code to test readline.)

When i type abc ENTER Hello, World! ENTER and 2x arrow up instead of


It is INabc

Does anyone know how to fix this?

(I already tried commenting out the readline.parse_and_bind’s I also use updated python3 and updated my readline using pip3, which also it up to date. And my readline is for python3. And everything is up to date!)

Get this bounty!!!

#StackBounty: #windows #command-line #filesystems #ntfs #fuse Windows cli equivalent of Mac `xattr`?

Bounty: 100

I thought extended file attributes existed in NTFS which Windows supports. I cannot find a cmd for accessing/updating attributes.

Is there a flavor of Windows (and its file system) that supports this?

I tried getfattr, setfattr, and a number of other commands. attrib is not it either.

If extended attributes are to remain portable across filesystems (even virtual ones implemented in FUSE) then all target platforms need to present an api in userspace (a cmd or set of cmds).

Get this bounty!!!

#StackBounty: #linux #command-line #voip #raspberry-pi #lan Terminal-based VoIP over LAN on Linux

Bounty: 100

I’m looking for a way to do voice chatting over my LAN without an Internet connection. The two machines both run Linux (they are Raspberry Pis, with the latest Raspbian Stretch Lite installed).

Programs like Skype won’t do the job, because they require an Internet connection and only run with a GUI. TeamSpeak would probably run without an Internet connection, but I don’t think that there is a way to start it without a desktop environment.

Do you know a program that would meet these requirements? Preferably an open source solution?

Get this bounty!!!

#StackBounty: #command-line #terminal #iterm2 iTerm2 (version 3): Individual history per tab?

Bounty: 50

I’m using iTerm2 (version 3.1.beta.5) and like it. But something that it has been doing for a while that’s really annoying is that the command history is shared between tabs. E.g., in your first tab, run command foo and command bar, then go to your second tab and run say Hello, and then go back to the first tab; I would like and expect the up arrow to suggest bar and then foo, but instead it will suggest say Hello.

Is there a way to correct this behavior?

Get this bounty!!!

#StackBounty: #5.0-lollipop #5.1-lollipop #command-line pm hide VS pm disable — the identity crisis

Bounty: 100

What’s the need of pm disable when pm hide already does its job?

I’ve compiled some information based on my search and research: click here to see the table (edited).

As you can see, pm hide can achieve what pm disable can, but without needing root access. Also, based on my tests, I’ve reached the conclusion that when pm hide is performed, unlike pm disable, no matter what, the app will not be loaded in the memory again.

I opine that hide descended from block. Block was first introduced in KitKat 4.4.0, remained till Android L Preview and was later superseded by hide in Android 5.0.0. It is not clear to me what lead to renaming of block to hide and why was it needed?

Regardless, if somebody without root access can achieve the functionality of disable, then why does disable exists at all?

Furthermore, why does hide exists? If hide was built supposedly to help users to get rid of anything they want, without un-installation and without rooting the device, then in the GUI we should be having a relevant option, but we’ve got only the disable option.

Intertwine questions:

  • What are the merits and demerits of them, excluding those noted in my question?
  • Why both of them exists and to what or whom do they serve?
  • Is it technically true that hide surpasses the functionality of disable and can truly disable any app, when executed on it?
  • New: Given findings of Andrew T. and my tests shown in the table, is component shown in hide‘s usage an error or have I failed to understand latter’s usage?

    For historical purposes: hide‘s usage as of now is shown as

    pm hide [--user USER_ID] PACKAGE_OR_COMPONENT

Note: The question does not, in any fashion, seeks unsubstantiated opinion but straight to-the-point answer(s). If you must write an opinion, make sure to back it up using credible and technical sources with sound reasoning to make distinction between what is technical and real and what is speculative.

Tests performed on Carbon ROM (Android 5.1.1) and COS12 (Android 5.0.2) for OnePlus One.

Get this bounty!!!

#StackBounty: #windows-7 #command-line #display #cmd.exe How can I determine the manufacturer and model of my monitor?

Bounty: 50

…from within Windows, without having to disconnect and manhandle a 27″ inch monitor looking for a label that may not exist. It seems odd that there’s no software-only solution to do this on Windows 7.

Both Device Manager and the Control Panel’s Screen Resolution (accessed by left-clicking on the desktop) display it as a “Generic Non-PnP Monitor”.

I’ve also tried the VBS script solution here, but running the script returns a whole bunch of “bad EDID” values, whatever those mean:

screenshot of VBS script results

Anyone have an idea?

Get this bounty!!!

#StackBounty: #command-line #etc #fish #chsh Change default shell when user not in /etc/passwd

Bounty: 50

Any ideas on how can I change the shell to fish?

$ sudo usermod -s /usr/bin/fish jaan
usermod: user 'jaan' does not exist in /etc/passwd
$ getent passwd $USER
jaan:x:15466:94:Jaan Altosaar:/home/jaan:/bin/zsh

Related questions: user does not exist in /etc/passwd when trying to change the default shell
Seems like it uses ldap.

$ cat /etc/nsswitch.conf
passwd:         compat ldap
group:          compat ldap
shadow:         compat ldap

# Having the NOTFOUND=return bit was breaking dns resolution on web1 and web2. But we probably
# don't want any of the mdns stuff so let's get rid of it all.
#hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
hosts:          files dns

networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       ldap
automount:      ldap

So I installed ldap relevant package.

$ chsh.ldap
LDAP password for jaan:
Enter the new value, or press ENTER for the default
  Login Shell [/bin/zsh]: /usr/bin/fish
Traceback (most recent call last):
  File "/usr/bin/chsh.ldap", line 69, in <module>
    constants.NSLCD_USERMOD_SHELL: shell,
  File "/usr/share/nslcd-utils/nslcd.py", line 128, in usermod
    assert con.get_response() == constants.NSLCD_RESULT_BEGIN
  File "/usr/share/nslcd-utils/nslcd.py", line 103, in get_response
    return self.read_int32()
  File "/usr/share/nslcd-utils/nslcd.py", line 71, in read_int32
    return _int32.unpack(self.read(_int32.size))[0]
struct.error: unpack requires a string argument of length 4
$ which fish
$ chsh.ldap
LDAP password for jaan:
Enter the new value, or press ENTER for the default
  Login Shell [/bin/zsh]: "/usr/bin/fish"
/usr/bin/chsh.ldap: "/usr/bin/fish" is an invalid shell
$ /usr/bin/fish
(standard_in) 1: syntax error
Welcome to fish, the friendly interactive shell

Get this bounty!!!