Difference between revisions of "Linux snippets"

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

Latest revision as of 01: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