user285259
  • Member for 7 years, 8 months
  • Last seen more than 3 years ago
  • France
How can I disable automatic screen dimming when the wireless mouse has low battery?
5 votes

Read your current value : gsettings get org.gnome.settings-daemon.plugins.power idle-dim gsettings get org.gnome.settings-daemon.plugins.power idle-brightness Then try : gsettings set org.gnome....

View answer
What is the date command line corresponding to var="$(date +"%x %r %Z")"
Accepted answer
5 votes

You did not copy exactly the same command. You wrote date +"%x %r %Z" inside parentheses. This just work well outside. Otherwise, date has three arguments (+%x, %r and %Z), rather than one (+%x %r %Z)....

View answer
sudo Crontab isn't running, but crontab is ? :)
1 votes

The most helpful should be to get errors messages. 2 3 * * * { date; bash -v "/usr/local/scripts/backup-mysql.sh"; date; } &>/tmp/cron-backup-mysql.log 25 3 * * * { date; bash -v "/usr/...

View answer
GTK commands in a single BASH shell script, is it possible?
0 votes

I agree with @Sergiy that using only Python would be ideal. But i think of a better compromise. Rather than running Bash code from Python as proposed. It should be possible to keep the Bash code ...

View answer
Check if specific external disk is connected
0 votes

findfs is made for this. You can search by : FS label findfs LABEL="Ubuntu" &>/dev/null FS uuid findfs UUID="f9035fce-b3a1-4aee-80ef-44e432b78fdb" &>/dev/null GPT label findfs ...

View answer
remove all letters after space in a line that start with specific character
0 votes

Assuming others lines contain only one word (as in the example), this is pretty straight forward : cut -f 1 -d " " file.fasta

View answer