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 [2020/11/04 16:37] – Tidying some links rjtlinux [2024/04/30 19:58] (current) – Setting default programs rjt
Line 2: Line 2:
  
 ===== Fixes ===== ===== Fixes =====
 +
 +==== Copying ====
 +The progress bar when copying files from, for example, your hard disk to a USB drive, will usually fill up, then be stuck at 100% for a while. This isn't really a bug, //per se//: the bar fills when the data has been completely copied to the cache, then goes away when the data has finished moving to the disk. It's annoying!
 +
 +You can work round this by using [[rsync]] for larger files—
 +
 +<code>rsync -av --progress [source] [destination]</code>
 +
 +—or be more adventurous and mess with some system setup:
 +
 +  * https://askubuntu.com/questions/122113/copy-to-usb-memory-stick-really-slow
 +  * 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/
 +
 +==== 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 ====
 Not having a great time with the kernal's OOM((__O__ut-__O__f-__M__emory)) Killer at the moment; it's not doing the job I expected it to, and I'm getting freezes when I get down to about 1GB of RAM. Not having a great time with the kernal's OOM((__O__ut-__O__f-__M__emory)) Killer at the moment; it's not doing the job I expected it to, and I'm getting freezes when I get down to about 1GB of RAM.
Line 22: Line 47:
 I forget how to do shit a lot. I forget how to do shit a lot.
  
-==== Renaming Multiple Files ==== +==== Pausing Terminal ==== 
-For me, **[[mmv]]** has the easiest syntax to remember. You'll probably have to install it.+You can pause activity in the [[terminal]] with ''Ctrl+s'', and resume again with ''Ctrl+q'', which I find handy sometimes when I'm doing updates.
  
-''mmv [options] [from] [to]''+If you think of it beforehand you can pipe output to [[less]] or [[more]] or send it to a file, but I never remember.
  
-You use ''#[number]'' in your ''[to]'' to represent //wildcards// in your ''[from]''. +==== Renaming Multiple Files ==== 
- +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.
-=== 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 =====
Line 39: Line 62:
   * Distros: [[arch linux]] | [[arch_linux#Antergos]] | [[lubuntu]]   * Distros: [[arch linux]] | [[arch_linux#Antergos]] | [[lubuntu]]
  
-{{tag>guide linux fixes}}+{{tag>guide open-source linux fixes}}
linux.1604468239.txt.gz · Last modified: 2020/11/04 16:37 by rjt