/ Published in: Bash
This creates an array of various linux shell names, loops through the array and ouputs a file called shell_locations.txt showing where the shells are located on the linux system.
Expand |
Embed | Plain Text
list=( sh csh bash zsh ksh tcsh ) for i in ${list[@]}; do whereis $i >> shell_locations.txt; done;
You need to login to post a comment.
