You are here |
hereket.com | ||
| | | |
blog.m0noc.com
|
|
| | | | When it comes to network security and performance of network services, an important concept is how the UNIX kernel handles establishing... | |
| | | |
willhaley.com
|
|
| | | | See here an example of a custom Linux mount script, written in Python, that can be used to mount disks with /etc/fstab. The mount script is installed at /usr/bin/mount.my-command and is executable. #!/usr/bin/env python3 import sys import subprocess device = sys.argv[1] mount_point = sys.argv[2] options = sys.argv[4] # Any customization could be done here to the `mount` command that is run. mount_command = ['mount', '-o', options, device, mount_point] output = subprocess.run( mount_command, capture_output=True ) if output.returncode != 0: print("error mounting") print(output.stderr.decode('UTF-8')) sys.exit(output.returncode) See here how the custom script can then be used in /etc/fstab like any "normal" mount. | |
| | | |
ncona.com
|
|
| | | | ss is a replacement for netstat; a program that allows you to analyze the sockets running on a Linux system. In practice, it is useful to investigate if a port is being used and by whom or to investigate which services are running. In its simplest form, the ss command will list all non-listening sockets: 1 2 3 4 5 6 7 8 [adrian@localhost ~]$ ss Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port u_str ESTAB 0 0 /run/systemd/journal/stdout 8313 * 29127 u_str ESTAB 0 0 /run/systemd/journal/stdout 9946 * 30837 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 7415 * 25359 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 8795 * 18724 u_str ESTAB 0 0 * 30484 * 28442 ... | |
| | | |
beable2.com
|
|
| | Welcome to WordPress. This is your first post. Edit or delete it, then start writing! |