On Sat, 30 Nov 2019, John Jason Jordan wrote:
And now that I have a find command that excludes /media I have saved it for use in the future when I need to find something that I know is not on any of my attached external drives. I only wish there was a way to save commands permanently in the GUI terminal - it would be faster and more convenient than having to open a text file of saved commands.
John, There is such a way. It's called a shell script. For the above, create a file named, e.g., 'find-mount-points.sh' with this content: ---------- #!/bin/bash # Find all mount points except those on external drives. Write them # to a file in my home directory. sudo find / -name "*.mount" -print -o -path '/media' -prune > ~/find_mount_points.txt # EOF ---------- Then run 'chmod +x find-mount-points.sh' I suppose you can attach that file to a picture on your desktop, or just run it from a terminal window (using sudo). Regards, Rich _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
