How to set an alias for a specific file or directory?
There are several files I work with often. For instance some configuration files or log files. Let’s say the Apache log file. I often want to tail or grep it. Instead of writing:
There are several files I work with often. For instance some configuration files or log files. Let’s say the Apache log file. I often want to tail or grep it. Instead of writing:
I have script I’d always like to run ‘x’ instances in parallel.
ls option --group-directories-first causes directories to be listed on the top, which makes the output of ls nice and clean:
Have I got enough (or perhaps too many) ;; terminators in this bash script containing nested case‘s?
In bash is there any way to expand a relative path into an absolute path, perhaps with tab completion?
I understand test -n <expression> to return false if the expression evaluates to a string length of greater than 0. Why then does the following happen?
I’ve the script which loads the SSH key from the variable (as part of script in CI environment) in order to not keep the private file in the public repository, however ssh-add complains about the wrong permissions (and it seems it’s not possible to bypass it). So my approach is to find the method of changing the permission of anonymous pipe which is created on the fly.
How can I configure Bash, Zsh or Tmux to complete the last matching identifier on the screen? Consider this common scenario:
-L logical mode: symlinks are not resolved
I have a bash application that is producing some result, and I’d like to echo the result to either stdout or to a user chosen file. Because I also echo other interactive messages going to the screen, requiring the user to explicitly use the > redirection when he wants to echo the result to a file is not an option (*), as those messages would also appear in the file.