/ 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
Copy this code and paste it in your HTML
list=( sh csh bash zsh ksh tcsh ) for i in ${list[@]}; do whereis $i >> shell_locations.txt; done;