bash

CLI Tip: Quickly create backup of file

Quick tip to rename a file:
cp /etc/X11/xorg.conf{,.bak}
will create a copy of xorg.conf as xorg.conf.bak in /etc/X11

Linux Tip of the Day/Week/Month/Year - Searching your bash/zsh history

Searching your bash/zsh history:

To search your history press CTRL+R and then type part of the command you are looking for. Keep pressing CTRL+R to go through the results.

Logitech G15/Z-10 LCD Spotify status/currently playing script

Here is a quick script I put together to be able to see what song is currently playing from Spotify on my Z-10 speakers.

Download here : g15spotify.zip

Released under the GPL 2.0

Please note this is my first 'big' bash script so please let me know about any problems/improvements needed.

Loosely based on G15 Amarok Plugin Plus by Robert Riemann

http://www.kde-apps.org/content/show.php/G15+Amarok+Plugin+Plus?content=76743

 

Syndicate content