User Tools

Site Tools


linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux [2022/09/01 17:41] – copying rjtlinux [2024/04/30 19:58] (current) – Setting default programs rjt
Line 15: Line 15:
   * https://forum.manjaro.org/t/copying-progress-bar-hangs-at-100-when-copying-to-thumb-drive/37108   * https://forum.manjaro.org/t/copying-progress-bar-hangs-at-100-when-copying-to-thumb-drive/37108
   * https://lonesysadmin.net/2013/12/22/better-linux-disk-caching-performance-vm-dirty_ratio/   * https://lonesysadmin.net/2013/12/22/better-linux-disk-caching-performance-vm-dirty_ratio/
 +
 +==== Default Programs ====
 +You can set the default programs used to open files by:
 +
 +  - Finding the name of the program's desktop file
 +    * It should be in ''/usr/share/applications'' or ''~/.local/share/applications''
 +  - Use ''xdg-mime'' to set the default, eg: ''xdg-mime default pcmanfm.desktop inode/directory''
 +
 +You can confirm with ''xdg-mime query default inode/directory''
 +
 +There are also GUI tools to do this, and if you use a //desktop environment// you probably have one already installed.
  
 ==== Memory ==== ==== Memory ====
Line 42: Line 53:
  
 ==== Renaming Multiple Files ==== ==== Renaming Multiple Files ====
-For me, **[[mmv]]** has the easiest syntax to remember. You'll probably have to install it. Otherwise, most [[file_manager|file managers]] should support it if you want a GUI? +For me, **[[mmv]]** has the easiest syntax to remember. You'll probably have to install it. There's a version of [[rename]] that uses [[Perl]] and allows [[regular expression]]s.
- +
-''mmv [options] [from[to]'' +
- +
-You use ''#[number]'' in your ''[to]'' to represent //wildcards// in your ''[from]''. +
- +
-=== Examples ===+
  
-Rename all files ''Treme SxxExx.mp4'' to ''SxxExx.mp4''\\  +Otherwise, [[GPRename]] is a graphical tool for batch renaming, and most [[file_manager|file managers]] should have some kind of batch file renaming built-in ([[Thunar]] does, [[pcmanfm]] doesn't).
-''mmv "Treme *" "#1"''+
  
 ===== See Also ===== ===== See Also =====
linux.1662018102.txt.gz · Last modified: 2022/09/01 17:41 by rjt