Sección donde se registran procedimientos, tips, howtos y knowhow en el uso de Linux o Unix en general.
Referencias:
Referencias a editores de texto y similares o equivalentes
Markdown Cheetsheet: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
Permite listar filesystems montados y despliega información mejor que mount
Ejemplo:
TARGET SOURCE FSTYPE OPTIONS / /dev/sda1 ext3 rw,relatime,errors=remount-ro,data=ordered |-/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime | |-/sys/fs/pstore pstore pstore rw,relatime | `-/sys/fs/cgroup cgroup tmpfs rw,relatime,size=12k,mode=755 | `-/sys/fs/cgroup/systemd | systemd cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/run/cgmanager/agents/cgm-release-agent.systemd,name=syste |-/proc proc proc rw,nosuid,nodev,noexec,relatime |-/dev udev devtmpfs rw,nosuid,relatime,size=1024996k,nr_inodes=216064,mode=755 | `-/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 |-/run tmpfs tmpfs rw,nosuid,noexec,relatime,size=206756k,mode=755 | |-/run/lock tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k | |-/run/shm tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size=804060k | |-/run/rpc_pipefs rpc_pipefs rpc_pipefs rw,relatime | `-/run/user/33 tmpfs tmpfs rw,nosuid,nodev,relatime,size=206752k,mode=700,uid=33,gid=33 |-/usr /dev/sda2 ext3 rw,relatime,data=ordered |-/data /dev/sda3 ext3 rw,relatime,data=ordered |-/home /dev/sdc4 ext3 rw,relatime,data=ordered |-/var /dev/sdc1 ext3 rw,relatime,data=ordered |-/tmp /dev/sdc3 ext3 rw,relatime,data=ordered
Referencias:
References:
Ojo: con grep usar -E o directamente usar egrep
Useful regexps:
\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}\b
grep -E -o “[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+”
egrep -o '(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)
'