4,348
edits
mNo edit summary |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 72: | Line 72: | ||
* xargs - to be processed - [http://offbytwo.com/2011/06/26/things-you-didnt-know-about-xargs.html Things you (probably) didn’t know about xargs] | * xargs - to be processed - [http://offbytwo.com/2011/06/26/things-you-didnt-know-about-xargs.html Things you (probably) didn’t know about xargs] | ||
Ignore "Permission denied" errors | |||
<syntaxhighlight lang="bash"> | |||
$ find . 2>&1 | grep -si "sfrrgam" | |||
</syntaxhighlight> | |||
== LVM == | == LVM == | ||
Line 364: | Line 370: | ||
tmpfs 1.6G 4.0K 1.6G 1% /run/user/1000 | tmpfs 1.6G 4.0K 1.6G 1% /run/user/1000 | ||
[root@chara mhan]# | [root@chara mhan]# | ||
</syntaxhighlight> | |||
=== Separating out /srv to a dedicated LVM === | |||
{{testedon|2023-10-09|RHEL 8.8}}. LoboCloud VM w/ 250 addl. | |||
<syntaxhighlight lang="bash"> | |||
# pvcreate /dev/sdb | |||
# vgcreate vgapps /dev/sdb | |||
# lvcreate -n lv_www -L 100G vgapps | |||
# mkfs.xfs /dev/mapper/vgapps-lv_www | |||
# mount /dev/mapper/vgapps-lv_www /mnt | |||
# mv -a /srv/* /mnt/ | |||
# vi /etc/fstab | |||
/dev/mapper/vgapps-lv_www /srv xfs defaults 0 0 | |||
# umount /mnt | |||
# mount /dev/mapper/vgapps-lv_www /srv | |||
</syntaxhighlight> | |||
To access the old /srv folder | |||
<syntaxhighlight lang="bash"> | |||
# mount -o bind / /mnt | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 562: | Line 592: | ||
|- | |- | ||
| Check for an open port | | Check for an open port | ||
| class="cli" | $ nc -zv 192.168.86.108 1523 | | class="cli" | $ nc -zv 192.168.86.108 1523<br/>$ cat < /dev/tcp/host.server.com/22 | ||
| | | | ||
|} | |} |