Find latest modified files in Linux

本文介绍如何使用find命令在Linux系统中查找特定时间范围内修改的文件,包括最近30分钟、最近一天及更早时间修改的.phtml文件。

2012-02-18 14:14 15740人阅读 评论(0) 收藏 举报

查找当前目录下.phtml文件中,最近30分钟内修改过的文件。

<code>find . -name '*.phtml' -type f -mmin -30</code>

查找当前目录下.phtml文件中,最近30分钟内修改过的文件,的详细情况。

<code>find . -name '*.phtml' -type f -mmin -30 -ls</code>

查找当前目录下,最近1天内修改过的常规文件。

<code>find . -type f -mtime -1</code>

查找当前目录下,最近1天前(2天内)修改过的常规文件。

<code>find . -type f -mtime +1</code>

转载于:https://my.oschina.net/darrenshi/blog/836776

### ESP-IDF Framework on Linux Setup and Usage #### Overview of the Environment Configuration For setting up the ESP-IDF (Espressif IoT Development Framework) under a Linux environment such as Ubuntu 22.04 LTS, several preparatory steps are necessary to ensure that developers can efficiently compile projects targeting boards like the ESP32 series[^1]. #### Installation Prerequisites Before installing ESP-IDF, it is important to install some prerequisites including Git for version control operations and CMake which manages build processes. Additionally, Python should be installed since many scripts within ESP-IDF rely heavily upon this scripting language. ```bash sudo apt-get update sudo apt-get install git wget flex bison gperf python3 python3-pip cmake ninja-build ccache libffi-dev libssl-dev dfu-util ``` #### Downloading ESP-IDF The official repository of ESP-IDF can be cloned using Git from Espressif's GitHub page: ```bash cd ~/esp git clone --recursive https://github.com/espressif/esp-idf.git ``` After cloning, one must set up the required tools by running `install.sh` script provided with ESP-IDF: ```bash cd esp-idf ./install.sh ``` This command installs all dependencies needed for building applications based on ESP-IDF along with toolchain binaries specific to supported hardware platforms. #### Configuring Environment Variables To configure environment variables permanently so they persist across sessions without needing manual configuration each time, add these lines into your shell profile file (`~/.bashrc`, `~/.zshrc`, etc.): ```bash export IDF_PATH=$HOME/esp/esp-idf source $IDF_PATH/export.sh ``` Then apply changes immediately via sourcing the modified profile or restarting terminal session. #### Building Projects Using ESP-IDF With everything configured correctly, creating new projects becomes straightforward thanks to templates included inside ESP-IDF directory structure. For instance, starting off with an example project could look something like this: ```bash idf.py create-project my_project_name cd my_project_name idf.py menuconfig # Configure project settings interactively. idf.py build # Compile source code files. idf.py flash # Upload firmware image onto target device over serial connection. idf.py monitor # View output logs coming directly from connected board during runtime operation. ``` By following above instructions carefully while adhering closely to documentation available online at [ESP-IDF Programming Guide](https://docs.espressif.com/projects/esp-idf/en/latest/), users will find themselves well-equipped when working alongside ESP-based devices through leveraging powerful features offered by ESP-IDF framework.
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值