awk '{printf "%2d| %s\n",length,$0}' filename
Credit: https://www.baeldung.com/linux/print-longest-lines-in-file#introduction-to-the-problem
awk '{printf "%2d| %s\n",length,$0}' filename
Credit: https://www.baeldung.com/linux/print-longest-lines-in-file#introduction-to-the-problem
awk 'length > max_length { max_length = length; longest_line = $0 } END { print longest_line }' ./text
$ cat /proc/{process-id}/limitsCheck current number of file descriptors of a process
$ sudo ls /proc/{process-id}/fd | wc -lSet file descriptors limit for a user at /etc/security/limits.conf
* soft nofile 64000Check system file descriptor limit
* hard nofile 64000
root soft nofile 64000
root hard nofile 64000
$ cat /proc/sys/fs/file-maxCheck current number of system file descriptors
$ cat /proc/sys/fs/file-nr
#!/bin/shFrom now on, any other weekend, no README file. This makes me love not-Windows OS more and more.
echo Start Sopcast at $1
/usr/local/bin/sp-sc $1 3908 8908 > /dev/null &
echo Waiting for Sopcast starting
sleep 10
vlc http://localhost:8908/tv.asf
#usbfs
none /proc/bus/usb usbfs devgid=46,devmode=664 0 0
I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresq...