Talk:Mint Linux Distribution Reference

From Free Knowledge Base- The DUCK Project: information for everyone
Revision as of 19:49, 2 January 2018 by Admin (Talk | contribs)

Jump to: navigation, search

network applet

  771 ?        Ssl    0:00 /usr/sbin/NetworkManager --no-daemon
 1087 ?        S      0:01 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/NetworkManager/dnsmasq.pid --listen-address=127.0.1.1 --cache-size=0 
                           --conf-file=/dev/null --proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq --conf-dir=/etc/NetworkManager/dnsmasq.d
13359 ?        Sl     0:00 /usr/lib/gvfs/gvfsd-network --spawner :1.1 /org/gtk/gvfs/exec_spaw/2
28369 ?        Sl     0:02 /usr/bin/python2 /usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py network
28457 ?        S      0:00 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /var/run/dhclient-enp0s20.pid 
                           -lf /var/lib/NetworkManager/dhclient-443a0f44-34d4-3427-9916-f2f01835e4ef-enp0s20.lease -cf /var/lib/NetworkManager/dhclient-enp0s20.conf enp0s20

To bring up the Network control panel type this:

/usr/bin/python2 /usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py network

Determine length of longest line in a text file

Use wc

wc -L filename

or use a shell script

#!/bin/sh

MAX=0 IFS=
while read -r line; do
  if [ ${#line} -gt $MAX ]; then MAX=${#line}; fi
done < "$1"
printf "$MAX\n"

Or the line number and length with egrep

egrep -n "^.{$(wc -L < filename)}$" filename | sed 's/:/ -> /'