4 ms·
Color mode (-F) in ls will highlight executables, usually in green.
by pavpanchekha 6y ago
Color mode (-F) in ls will highlight executables, usually in green.
- gmfawcett 6y agoAh! Thanks. I guess if they need a second color, they could mark the file `setuid` as well. :P This is clever, but I wouldn't trust any tool that marks not-intentionally-executable things as executable.
- wnoise 6y agoThey are in fact executable! > Due to the initial exec line in the log files, you can resubmit a job by executing it as a shell command file, i.e. running sh $jobid. (and many shells have a legacy behavior of running a file as a script if it doesn't start with a #! line.)
- jmgao 6y ago> (and many shells have a legacy behavior of running a file as a script if it doesn't start with a #! line.) execlp and execvp are actually guaranteed to do this in POSIX-2017, although shells might also do this themselves if they resolve $PATH by themselves.
- philsnow 6y ago-F appends a character to dentry names indicating what kind they are (directory '/' , named pipe '=', executable '*', ... symlink? dunno what else) my `man ls` has: -F, --classify append indicator (one of */=>@|) to entries
- bmn__ 6y agoGNU coreutils manual explains it better. https://www.gnu.org/software/coreutils/manual/html_node/General-output-formatting.html#index-_002d_002dclassify https://www.gnu.org/software/coreutils/manual/html_node/Gene...