Fulltext results:
- Compare directories @info:script
- f the directories, generate a digest file: <code bash> find DIR -type f -exec shasum {} + | LC_ALL=C so... er that, you can diff the two shasums.txt: <code bash> diff shasums1.txt shasums2.txt </code> Or you use Meld as graphical diff tool: <code bash> meld shasums1.txt shasums2.txt </code> {{tags>c
- List Open Ports @info:sysadmin
- rts together with the listening processes: <code bash> netstat -tulpn </code> Here is an example outpu
- Disable a Service @info:linux:debian
- le a Service ====== To disable a service: <code bash> service <service> stop update-rc.d <service> ena... With ''systemd'' (starting with Debian 8): <code bash> systemctl disable <service> </code> To (re)enable a service: <code bash> update-rc.d <service> enable|disable service <se... With ''systemd'' (starting with Debian 8): <code bash> systemctl enable <service> </code> {{tag>linux
- Cursor Size @info:linux:gnome
- the value ''32'' with your prefered size. <code bash> gsettings set org.gnome.desktop.interface cursor
- SSH @info:sysadmin
- make sure to restart sshd to activate ist: <code bash> service ssh restart </code> {{tag>sysadmin ssh
- rmdir for OSX @info:mac
- es from the command line quite complicated: <code bash> $ rmdir test rmdir: test: Directory not empty $ ... Store $ /bin/rmdir test </code> I wrote a small bash function to remove directories together with the contained ''.DS_Store'' file: <code bash> rmdir() { for d in "$@" do f="${d%/}/.DS_Store"... ction you can remove the directory at once: <code bash> $ rmdir test removing test/.DS_Store </code> {{
- MacPorts @info:mac
- === List Ports ===== list requested ports: <code bash> port echo requested | cut -d ' ' -f 1 | uniq </code> list installed ports: <code bash> port -qv installed </code> ===== Housekeeping =... You can see a list of all installed ports: <code bash> port echo installed </code> After you run MacPo... ot of duplicate ports. You can clean these: <code bash> sudo port uninstall inactive </code> {{tag>admi
- Set a Mac's Hostname @info:mac
- red hostname instead of ''the_hostname''): <code bash> sudo scutil --set HostName the_hostname </code>
- Make your Mac feel at Home @info:mac
- ther your Mac is in the given (home) WLAN. <code bash> # # Path to 'airport' executeable, as of Mac OS
- Comapct Sparse Image @info:mac
- ====== Comapct Sparse Image ====== <code bash> hdiutil compact your.sparseimage </code> {{tag>sysadmin
- Shell Script Variables @info:script
- er ===== Get the last character of ''$a'': <code bash> ${a: -1} </code> ===== Remove Slash from the En... ===== Remove a trailing slash from ''$a'': <code bash> a=${a%/} </code> {{tag>scripting bash sysadmin variable}}
- Download a Server Certificate @info:cryptography:openssl
- oad the certificate chain from the server: <code bash> openssl s_client -showcerts -connect www.example
- Print Information about a Signature @info:cryptography:openssl
- Print Information about a Signature ====== <code bash> openssl pkcs7 -in signature.p7s -text -inform DE
- Install the Java-Plugin for Firefox @info:java
- le ''libnpjp2.so'' in the JRE's "lib" dir. <code bash> sudo ln -s \ ${JAVA_HOME}/jre/lib/amd64/libnpj
- Disable Core Dumps @info:linux
- umps'' with the content ''* hard core 0'': <code bash> echo '* hard core 0' > /etc/security/limits.d/no