Flag | Usage |
---|---|
-s | send output to syslog rather than to stdout |
ntpdate 0.fr.pool.ntp.org
It is possible to load server(s) list from /etc/default/ntpdate when using ntpdate-debian.Flag | Usage |
---|---|
-n --numeric | Output all host addresses in dotted-quad numeric format rather than converting to the canonical host names |
-p --peers | Print a list of the peers known to the server as well as a summary of their state |
remote refid st t when poll reach delay offset jitter ============================================================================== *10.27.25.129 10.27.53.3 5 u 643 1024 377 0.723 26.117 14.169output fields (sources : 1, 2, 3) :
Flag | Usage |
---|---|
-d --clear-dirty | Clear the volume dirty flag if the volume can be fixed and mounted. If the option is not present or the volume cannot be fixed, the dirty volume flag is set to request a volume checking at next mount. |
-n --no-action | Do not write anything, just show what would have been done. |
Flag | Usage |
---|---|
-l --long | Use the long listing format |
-x --mountpoints | Show mountpoint directories with a D rather than a d |
f: /home/stuart/.bashrc drwxr-xr-x root root / drwxr-xr-x root root home drwxr-xr-x stuart users stuart -rw------- stuart users .bashrc
Flag | Usage |
---|---|
newgrp - | when the - is...
|
newgrp groupName |
|
Flag | Usage |
---|---|
-t durationMs --expire-time=durationMs | Display the notification during durationMs milliseconds (if unspecified, defaults to ~10s) |
-i /path/to/file --icon=/path/to/file | Display this icon with the message |
cat << EOC | nsupdate -d server ip.of.dns.server zone acme.com update delete myServer.acme.com update add myServer.acme.com 3600 A 10.27.25.105 send EOC
Sending update to ip.of.dns.server#53 Outgoing update query: ;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: 7985 NOERROR is its way of saying "it worked" ;; flags:; ZONE: 1, PREREQ: 0, UPDATE: 2, ADDITIONAL: 0 ;; ZONE SECTION: ;acme.com. IN SOA ;; UPDATE SECTION: myServer.acme.com. 0 ANY ANY myServer.acme.com. 3600 IN A 10.27.25.105 Reply from update query: ;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: 7985 NOERROR is its way of saying "it worked" ;; flags: qr; ZONE: 1, PREREQ: 0, UPDATE: 2, ADDITIONAL: 0 ;; ZONE SECTION: ;acme.com. IN SOA ;; UPDATE SECTION: myServer.acme.com. 0 ANY ANY myServer.acme.com. 3600 IN A 10.27.25.105
cat << EOC | nsupdate -d server ip.of.dns.server zone 25.27.10.in-addr.arpa update delete 105.25.27.10.in-addr.arpa PTR update add 105.25.27.10.in-addr.arpa 3600 PTR myServer.acme.com. send EOC
Sending update to ip.of.dns.server#53 Outgoing update query: ;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: 1423 ;; flags:; ZONE: 1, PREREQ: 0, UPDATE: 2, ADDITIONAL: 0 ;; ZONE SECTION: ;25.27.10.in-addr.arpa. IN SOA ;; UPDATE SECTION: 105.25.27.10.in-addr.arpa. 0 ANY PTR 105.25.27.10.in-addr.arpa. 3600 IN PTR myServer.acme.com. Reply from update query: ;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: 1423 ;; flags: qr; ZONE: 1, PREREQ: 0, UPDATE: 2, ADDITIONAL: 0 ;; ZONE SECTION: ;25.27.10.in-addr.arpa. IN SOA ;; UPDATE SECTION: 105.25.27.10.in-addr.arpa. 0 ANY PTR 105.25.27.10.in-addr.arpa. 3600 IN PTR myServer.acme.com.
cat << EOC | nsupdate -d server 10.27.25.129 zone acme.com update delete myServer.acme.com update add myServer.acme.com 3600 A 10.27.25.105 here ! zone 25.27.10.in-addr.arpa update delete 105.25.27.10.in-addr.arpa PTR update add 105.25.27.10.in-addr.arpa 3600 PTR myServer.acme.com. send EOC
Without this, trying to alter the PTR record will fail saying :
Reply from update query:
;; ->>HEADER<<- opcode: UPDATE, status: NOTZONE, id: 8212
;; flags: qr; ZONE: 1, PREREQ: 0, UPDATE: 4, ADDITIONAL: 0
;; ZONE SECTION:
;25.27.10.in-addr.arpa. IN SOA
nslookup server dnsServer hostname
nslookup set type=a|any|cname|mx|ns example.com
nslookup server dnsServer IP@
web.example.com A 12.34.56.78 *.example.com CNAME web.example.com test.example.com TXT Hello world !
nohup anyCommand &
Flag | Usage |
---|---|
(none) | Print the current scheduling priority, which is inherited. |
-n priority command | Run the command command with the priority priority |
nice -n niceValue command argument1 argument2
This is easy to remember for french speakers as la pute is a french insult (and, you known, we really enjoy swearing )
Option | Function |
---|---|
(none) | Displays the list of open sockets. When available, IP@ and standard sockets numbers are translated into names |
-a --all | Show both listening and non-listening sockets |
-c --continuous | Redisplays the required information every second |
-e --extend | Display additional information. Use this option twice for maximum detail |
-i | Display a table of all network interfaces (name, MTU, metric, received/sent packets, errors, ...) |
-l --listening | Show only listening sockets. (These are omitted by default.) |
-n | Displays all fields in numerical form (=non-resolved). This includes addresses, ports, user ids, ... |
-o --timer | Include information related to networking timers |
-p --program | Show the PID and name of the program to which each socket belongs |
--protocol=family | Specifies the address families (perhaps better described as low level protocols) for which connections are to be shown. family is a comma (, ) separated list of address family keywords like:
|
-r --route | Displays the kernel routing tables |
-s --statistics | Display summary statistics for each protocol |
-t --tcp | Show only TCP connections |
-u --udp | Show only UDP connections |
less -p ^OUTPUT
' netstat) :In /etc/apache2/ports.conf, if the listening port is configured as :
sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode 0: 6538A8C0:008B 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 132977 1 000000007606394f 100 0 0 10 0 1: 00000000:006F 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 14694 1 000000003f7e8f86 100 0 0 10 0
192.168.56.101
Alternate solution to split strings without delimiter with Awk : https://www.gnu.org/software/gawk/manual/html_node/String-Functions.html#index-patsplit_0028_0029-function-_0028gawk_0029 patsplit(string, array [, fieldpat [, seps ] ]) # echo '12345678' | awk '{patsplit($0, myArray, ".."); printf("%d %d %d %d", myArray[4], myArray[3], myArray[2], myArray[1]); }'
139