Skip to main content
added 13 characters in body
Source Link
Chris Stryczynski
  • 32.6k
  • 54
  • 197
  • 311
ls -t | head -n1

This command actually gives the latest modified file or directory in the current working directory.

ls -t | head -n1

This command actually gives the latest modified file in the current working directory.

ls -t | head -n1

This command actually gives the latest modified file or directory in the current working directory.

format
Source Link
fedorqui
  • 285.3k
  • 105
  • 579
  • 617

ls -t | head -n1

ls -t | head -n1

This command actually gives the latest modified file in the current working directory.

ls -t | head -n1

This command actually gives the latest modified file in the current working directory.

ls -t | head -n1

This command actually gives the latest modified file in the current working directory.

The above command actually finds the latest file in the current directory.
Source Link
ls -c|head -n1

ls -t | head -n1

This command actually gives the latest modified file in the current working directory.

ls -c|head -n1

ls -t | head -n1

This command actually gives the latest modified file in the current working directory.

Source Link
chaos
  • 123.5k
  • 33
  • 305
  • 310
Loading