Difference between revisions of "Linux snippets"

From Tom's notes
Jump to navigation Jump to search
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Vserver]]
 
[[Vserver]]
  
−
=Filesystem commands=
+
=Various=
−
==Resize jfs filesystem==
+
* [[Linux startup scripts]]
−
<source lang="sh">
+
* [[Disk management]]
−
lvresize --size +5G /dev/vg0/lv0
+
* [[iSCSI target]] (server)
−
mount -o remount,resize /dev/vg0/lv0
+
* [[iSCSI initiator]] (client)
−
</source>
+
* [[Tftp-server]]
−
 
+
* [[PXE boot]]
−
==Resize ext filesystem==
+
* [[Docker cheat sheet]]
−
<source lang="sh">
+
* [[Gentoo minimal boot rescue on Qemu]]
−
lvresize --size +5G /dev/vg0/lv0
+
* [[Microsecond time]]
−
resize2fs /dev/vg0/lv0
+
* [[Hibernation using full disk encryption]]
−
</source>
+
* [[Linux on Alienware 15 R4]]
 +
* [[php fpm on apache]]
  
 
=File manipulation=
 
=File manipulation=

Latest revision as of 00:50, 24 April 2021

Vserver

Various

File manipulation

Rsync copy keeping all attributes

Using checksumming:

rsync -acPHAXSxvW --numeric-ids --delete --stats

Only comparing size and time:

rsync -aPHAXSxvW --numeric-ids --delete --stats