-
-rw-rw-r-- 1(代表硬鏈接數) 第一個“-”是文件類型,剩下9個的分為三組,分別是owner,group,world 添加寫權限:chmod +w change file mode(改變文件模式)查看全部
-
locate從數據庫中進行搜索。updatedb可以將文件系統中的內容更新到db中。 所以locate速度快,但是不能滿足實時性的需求。查看全部
-
bg -> 顯示后臺 fg -> 顯示前臺查看全部
-
be careful of whitespace!!! in script. ssh -t xxx@ip 'command' //execute program in server查看全部
-
the end descriptor of command 'find' is ';' and the '{}' represents the content which command 'find' searched.查看全部
-
there are three files open constantly : stdin(0), stdout(1) and stderr(2) input data will be saved into stdin while stdout and stderr will show on screen. redirect error into a file 2 > file redirect stdin program < stdin查看全部
-
have executing permission of a directory, then you enter this directory.查看全部
-
only have the write permission of a directory, then do create/delete/rename file inside.查看全部
-
locate only find file in database, if you create a new, it cannot find it. however, if you really want to find it. you can do it like this. updatedb && locate newfile updatedb run everyday, but you can run it manually查看全部
-
常用的shell功能查看全部
-
locate找不到系統當天創建的文件查看全部
-
ctr+alt+F1 字符控制臺 ctr+alt+F7 圖形界面控制臺查看全部
-
copy $cp file1 file2 $cp -r dir1 dir2查看全部
-
權限黨,^-^查看全部
-
查找命令: locate 全局查找,非全盤搜索,根據已有的數據庫搜索,而數據庫更新時間為1天,因而不能查找新建的文件,可利用系統權限執行updatedb命令解決該問題 find 當前目錄內查找,支持更多參數輔助 grep 非常常用的查找命令 細解: locate --regex *** 支持正則查詢 find . 查找當前目錄內的全部內容 find . | grep .txt 查找當前目錄內所有txt文件 find . -type f 查找文件 find . -type d 查找路徑 find . -type f -exec command ';'查找并執行command命令查看全部
舉報
0/150
提交
取消