Linux
  • Linux
  • Bash
  • Debian
  • Ubuntu
  • Shell
  • CentOS
  • SSH
☰

輕鬆找到目錄中最新的檔案

tag-icon 2024-6-13 • tag-icon bash
輕鬆找到目錄中最新的檔案

是否有一個 bash 命令可以提供我目錄中最新的檔案。或者甚至更好的是與給定模式匹配的最新文件。

我能想到的最好的就是這個。

ls -t | head -n1

或用於模式,例如 *.xml

ls -t *.xml | head -n1

但也許有更好的東西。

THE END
適用於 NVIDIA GPU 的 Debian Nouveau 驅動程式包含/缺少哪些功能? 適用於 NVIDIA GPU 的 Debian Nouveau 驅動程式包含/缺少哪些功能?
Linux終端機如何繪製字元? Linux終端機如何繪製字元?

相關內容

熱門問答

熱門問答

  • debian
  • nvidia
  • graphics
  • proprietary-drivers
  • character-encoding
  • text

© 2024 rvso.com 版權所有. 網站地圖