-2

Without the use of '&&', '||' and ';' - Can you write a 2-line Linux script that lists all files (even ones hidden) in the current directory and the parent of the working directory and the /boot directory (in this order), in long format?

1 Answers1

1

With full path as required:

find . .. /boot -type f -maxdepth 1 -exec readlink -f {} +

or of instead you need the output of ls -l:

ls -la . .. /boot
Gilles Quénot
  • 3,569
  • 1
  • 15
  • 14