【求助】Linux 的指令...

顯示結果從第 1 筆 到 3 筆,共計 3 筆
  1. #1
    會員
    註冊日期
    2003-08-25
    討論區文章
    4

    【求助】Linux 的指令...

    I have to accomplish the following tasks:

    (a) A listing of all the files under the /etc directory and its sub-directories that have been created or changed since the system was booted.
    (b) A listing of all the files under the /dev directory and all its sub-directories that have been created or modified in the last 30 minutes.
    (c) A listing of all the files under the /home directory and all its sub-directories that have been created or modified within the last 7 days.
    (d) A listing of all the files under the /tmp directory and all its sub-directories that were more than 30 days old.

    i need to use the command to do this.. i know need to use "find" command, i am quite confuse about that. Can anyone help me.??



  2. #2
    Take it easy~ leonchou 的大頭照
    註冊日期
    2001-05-03
    討論區文章
    3,244
    Let me try...

    (b) find /dev -cmin -30 -o -mmin -30

    (c) find /home -ctime -7 -o -mtime -7

    (d) find /tmp -ctime +30

  3. #3
    會員
    註冊日期
    2003-08-25
    討論區文章
    4
    i got it.. thanks a lot..~~~

類似的主題

  1. 【求助】linux埵陶o樣子的指令嗎
    作者:mingwei6444 所在討論版:-- FreeBSD & Linux 討 論 版
    回覆: 8
    最後發表: 2003-03-02, 10:11 PM
  2. 【教學】Linux Shell 裡一些很少用到卻很有用的指令
    作者:smallway 所在討論版:-- FreeBSD & Linux 討 論 版
    回覆: 0
    最後發表: 2002-11-05, 01:40 AM
  3. 【求助】請問Linux底下硬碟掃描及重組的指令
    作者:icloud 所在討論版:-- FreeBSD & Linux 討 論 版
    回覆: 3
    最後發表: 2002-08-28, 11:16 AM
  4. 【求助】Linux重抓IP的指令是?
    作者:h0105 所在討論版:-- FreeBSD & Linux 討 論 版
    回覆: 6
    最後發表: 2002-06-03, 09:23 PM
  5. 【轉貼】Linux 常用指令集
    作者:simonwu 所在討論版:-- FreeBSD & Linux 討 論 版
    回覆: 3
    最後發表: 2002-04-12, 02:10 PM

 

此網頁沒有從搜尋引擎而來的訪客

發表文章規則

  • 不可以發表新主題
  • 不可以回覆文章
  • 不可以上傳附加檔案
  • 不可以編輯自己的文章
  •