cat to standard out acts like tail
Matthias Apitz
guru at unixarea.de
Fri Feb 2 14:46:26 UTC 2018
El día viernes, febrero 02, 2018 a las 09:24:35a. m. -0500, James B. Byrne via freebsd-questions escribió:
> FreeBSD-11p6
>
> # ll /bin/cat
> -r-xr-xr-x 1 root wheel 13288 Nov 13 10:00 /bin/cat
>
> [root at inet19 ~]# ll /bin/cat
> -r-xr-xr-x 1 root wheel 13288 Nov 13 10:00 /bin/cat
> # wc /etc/rc.conf
> 46 226 2093 /etc/rc.conf
> # cat /etc/rc.conf | wc
> 46 226 2093
> # cat -n /etc/rc.conf
>
> 12
> 13 # Cloned i/f and assigned ipv4 addr for jails
> 14 cloned_interfaces="lo1 lo2 lo3" # For shared jail configuration
> 15 ipv4_addrs_lo1="127.0.100.1/32" # idempaire / theheart
> 16 ipv4_addrs_lo2="127.0.109.1/32" # redmine - wiki / pas
...
> 45
> 46 syslogd_flags="-b 127.0.0.1 -b 192.168.216.19 -b 216.185.71.19"
>
> What happened to the first 11 lines?
Please check with 'od -c ...' the content of the file or do
# cat -n /etc/rc.conf > /tmp/x
# vi /tmp/x
matthias
--
Matthias Apitz, ✉ guru at unixarea.de, ⌂ http://www.unixarea.de/ 📱 +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20180202/ffd44bea/attachment.sig>
More information about the freebsd-questions
mailing list