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 17:05] – [See Also] open-source tag rjtlinux [2022/12/19 00:27] (current) – workign on renaming section 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/
 +
 ==== 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 36:
 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 =====
linux.1604469920.txt.gz · Last modified: 2020/11/04 17:05 by rjt