



You can use more or fewer question marks to keep more or less of the original file name. ? tells the command to keep the first six characters of the original file name (because there are six question marks).*.* means "any file in this folder." You could adjust this to say IMG*.* to limit it to any files that start with IMG, or *.jpg for any JPEG files.rename tells the system to rename the files you're about to narrow down.Leaving you with files named IMG_001-original.jpg, and so on. You'll need those quotes if your file path has any spaces in it, so don't forget them.įrom there, you can run something like the below to rename all the files in the folder: Open a command prompt and use the cd command to navigate to the folder where those files are stored, like so:Ĭd "C:\Users\Whitson\Photos\Christmas 2020" For this, you can turn to the command line.

The default browser value can be obtained from any of these keys so I went for /desktop/gnome/url-handlers/http/command and used it to fill the $BROWSER variable (the value is stripped of the "%s" part).But maybe you want to do the opposite-keep the existing file name but append a word to the end. (I found out that gnome-default-applications-properties changes some gconf keys according to the browser that is currently set. That will make sensible-browser always launch the user-specified default web browser. You might solve this by using either x-www-browser or gnome-www-browser system links that you can set up through update-alternatives, but those are system wide settings, not user specific (and they are not synchronized with the values set through gnome-default-applications-properties.Īll this can be solved by opening the sensible-browserexecutable (which is actually a script): sudo gedit $(which sensible-browser)Īnd adding this at the beginning: #!/bin/bashīROWSER=$(gconftool -g /desktop/gnome/url-handlers/http/command) Other times you might need to set it as a parameter for some programs that require a link to a web browser and don't work well with gnome-open (e.g.: acroread). That's a problem if you want to set up an icon or a shortcut that will always launch the browser that is set as default. There is a problem with gnome-open - it won't invoke the default web browser unless you specify a url.
