This section describes how to build ShellCheck from a source directory. ShellCheck is written in Haskell and requires 2GB of RAM to compile. Installing Cabal ShellCheck is built and packaged using Cabal. Install the packagecabal-installfrom your system's package manager (with e.g.apt-get,brew,e...
## play video files in a current directory ## # cd ~/Download/movie-name # playavi or vlc alias playavi = 'mplayer *.avi' alias vlc = 'vlc *.avi' # play all music files from the current directory # alias playwave = 'for i in *.wav; do mplayer "$i"; done' alias playogg ...
命令rmdir(remove directory)删除一个目录。这个目录必须是空的。它有两个开关: n --ignore-fail-on-non-empty——当删除的目录中有文件时,不不报告错误。 n --parents(-p)——删除所有的父目录及子目录。 $ rmdir read_only rmdir: read_only: Directory not empty $ rmdir --parents read_only/backup/...
From Source gitclonehttps://github.com/alexanderepstein/Bash-Snippets# clone the repositorycdBash-Snippets# cd into the cloned directorygit checkout v1.23.0# Git checkout to the latest stable release ./install.sh all# install all scripts ...
Using the snippets from this bible can help remove unneeded dependencies from scripts and in most cases make them faster. I came across these tips and discovered a few while developing neofetch, pxltrm and other smaller projects.The snippets below are linted using shellcheck and tests have been ...
(SSL) --pass <pass> 私钥密码 (SSL) --engine <eng> 加密引擎使用 (SSL). "--engine list" for list --cacert <file> CA证书 (SSL) --capath <directory> CA目录 (made using c_rehash) to verify peer against (SSL) --ciphers <list> SSL密码 --compressed 要求返回是压缩的形势 (using defl...
To delete the folder from the git repository recursively, we have to use the “rm” command followed by the “-r” option and the name of a folder as shown below. To ensure that our remove directory command worked, use the ls command to check that the unwanted folder was removed from ...
In this part, we demonstrate how to delete a file or directory using the Linux command line. But before we do this, we must first open the terminal. Before we can remove a folder or director, we must first know its name. Therefore, we must first execute the “ls” command in the te...
The recommended directory iscompletionsdir, which you can get withpkg-config --variable=completionsdir bash-completion. From this directory, completions are automatically loaded on demand based on invoked commands' names, so be sure to name your completion file accordingly, and to include (for examp...
") # Push Fruits+=('Watermelon') # Also Push Fruits=( ${Fruits[@]/Ap*/} ) # Remove by regex match unset Fruits[2] # Remove one item Fruits=("${Fruits[@]}") # Duplicate Fruits=("${Fruits[@]}" "${Veggies[@]}") # Concatenate lines=(`cat "logfile"`) # Read from file...