Fulltext results:
- root login with bash
- ====== root login with bash ====== On our systems, the ''root'' account is set to be a role, so you c... ot'' role. Also, the ''root'' user has the bourne shell (''/bin/sh''), but working with ''/bin/bash'' is much easier. Using this command, you can directly log in as ''r
- Compare directories
- the directories, generate a digest file: <code bash> find DIR -type f -exec shasum {} + | LC_ALL=C sort -d -k 2 > shasums.txt </code> It's important to use ''LC_ALL=C'' and the op... erent machines. After that, you can diff the two shasums.txt: <code bash> diff shasums1.txt shasums2
- DynDNS Updates without a Client
- ent for my OpenSolaris Home Server, but a small bash script does the job as good as any other client. <code bash dyndns-update.sh> #! /bin/bash . ${HOME}/.dyndns.cfg DOMAINS=$(cat ${HOME}/.dyndns.domains) echo "$(date '+%Y-%m-%
- Shell Script Variables
- ====== Shell Script Variables ====== ===== Last Character ===== Get the last character of ''$a'': <code bash> ${a: -1} </code> ===== Remove Slash from the End of a Variable ===== Remove a trailing slash from ''$a'': <code bash> a=${a%/} </code> {{tag>
- Change Encoding with iconv
- = Convert All Files in a Directory ===== <code bash> for f in $(find . -type f) do iconv -f iso-885... {f}_$$_TEMP ${f} \ && mv ${f}_$$_TEMP ${f} done </code> {{tag>sysadmin convert encoding shell cli}}
- exiftool
- *.jpg ===== Correct the Date of Photos ===== To shift the photos 43 days, 14 hours and 55 minutes to
- Command Line Tools Used in My Scripts
- an dline tools which I use in my scripts an which should be installed on every of my systems. Basic to