unix

    13熱度

    2回答

    我正在使用Hadoop,我需要找到Hadoop文件系統中的〜100個文件中的哪一個包含某個字符串。 我可以看到我想要搜索這樣的文件: bash-3.00$ hadoop fs -ls /apps/mdhi-technology/b_dps/real-time ..這將返回這樣幾項內容: -rw-r--r-- 3 b_dps mdhi-technology 1073741824 2012-07-

    7熱度

    1回答

    這裏是我試圖調試的程序: #include <stdio.h> int i = 5; int main(void) { int x = 3; display(x); return 0; } void display(int x) { for (i=0; i<x; ++i) { printf("i is %d.\n", i); } }

    0熱度

    1回答

    這是一個重複的問題在這裏: Differences in controlling daemons & applications與更新的代碼只有 讓更多的人 可以查看和評論。 大家好, 對於這個優秀的帖子: What's the difference between nohup and a daemon? 我想問下: 推出從我的終端應用程序後,應用程序不管是在後臺還是在前臺運行,我唯一能做的就是通過

    3熱度

    1回答

    我收到了我的客戶的服務器的「winscp」訪問權限,以檢查一些文件。我試圖通過ssh連接,但只有我已經從服務器得到的回答是: 的WinSCP:這是最終的文件:0 我嘗試使用午夜指揮官外殼鏈接,FTP,SFTP。我能做些什麼來連接到服務器?

    1熱度

    3回答

    /* Low Level I/O - Read and Write Chapter 8 - The C Programming Language - K&R Header file in the original code is "syscalls.h" Also BUFSIZ is supposed to be defined in the same header file */

    3熱度

    2回答

    我有一組包含日期的文件。 讓我們稱之爲: a20120528_120001.log b20120528_120003.log (name)(year)(month)(day)_(hour)(minute)(second).log 這是很容易做同時移動這兩個文件: mv *20120528_12* file/ 但現在我有,我想移動數小時價值的情況文件在同一天即: a20120528_12

    4熱度

    3回答

    在bash中,我們可以使用& &運算符來執行兩個命令。例如: ./foo && ./bar 將首先執行foo,且僅當foo是「成功的」,這將執行bar。然而,當您認爲C程序按照慣例在成功完成時返回0或exit(0),這與運算符&&的行爲相反,這似乎與直覺相反。 (因爲在大多數語言中,0被認爲是'假的',因此會阻止第二個語句的執行。)我錯過了什麼?

    0熱度

    3回答

    我想將所有超過30天的文件備份到1個存檔文件中。 我嘗試使用這個腳本: #!/bin/bash # Find all files that older than 30 days and store it into backup.tar.gz find ~/Algorithm/test/PDF -mtime +30 -exec tar czvf backup.tar.gz {} \; 但不

    1熱度

    3回答

    這裏是我的目錄結構:我用這個命令試圖找到所有的6個月內將其刪除該文件 ./archive /sub1 - file1 - file2 /sub2 - file3 - file4 : find ./archive -mindepth 1 -mtime +180 -delete 的所有文件和子目錄被刪除,我想要的只是刪除fil

    2熱度

    1回答

    假設我在Heroku上有兩個Web應用程序。例如foobar-signup.heroku.com和foobar-conferences.heroku.com。 如果我想映射來自www.foobar.com/signup和www.foobar.com/conferences下在這兩個後端應用程序相同的航路(即www.foobar-signup.heroku.com/signup,...),我應該用做