whereis command is used to find out where the binary, source, and man page files for a command are located. For example, typing “whereis firefox” (without the quotes) at the prompt displays results as shown in the following image.
the classical way to mount filelsystems automatically is to use fstab there is another method which is based on systemd [root@svn ~]# cat /etc/fstab # # /etc/fstab # Created by anaconda on Wed Apr 26 17:25:59 2017 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # /dev/mapper/cl-root / xfs defaults 0 0 UUID=6e3708b2-09ea-43f3-b0f0-9b43a157b3b1 /boot xfs defaults 0 0 /dev/mapper/cl-swap swap swap defaults 0 0 [root@svn ~]# #description /boot - where you want to mount filesystem xfs - filesystem defaults ...
et -euf -o pipefail In dash, set -o doesn't exist, so use only set -euf . What do those do? set -e If a command fails, set -e will make the whole script exit, instead of just resuming on the next line. If you have commands that can fail without it being an issue, you can append || true or || : to suppress this behavior — for example set -e followed by false || : will not cause your script to terminate. set -u Treat unset variables as an error, and immediately exit. set -f Disable filename expansion (globbing) upon seeing * , ? , etc.. If your script depends on globbing, you obviously shouldn't set this. Instead, you may find shopt -s failglob useful, which causes globs that don't get expanded to cause errors, rather than getting passed to the command with the * intact. set -o pipefail set -o pipefail causes a pipeline (for example, curl -s ...
Comments
Post a Comment