Tests the loop condition each time while [ ! –f /tmp/foo ]; do try_to_make_foo # makes /tmp/foo on success sleep 1 # wait 1 sec done Used when the number of loops is unknown or changes each loop
18 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1373 | Lượt tải: 0
The xargs command helps complex piped command sets execute more efficiently It attempts to build the longest command line possible with as many arguments as possible It tries to prevent executing the command each time for every argument
70 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1357 | Lượt tải: 0
zip output.zip file1 file2 file3 zip foo.zip file.doc # One file zip –r foo.zip Documents # recurse unzip –l foo.zip # show contents unzip foo.zip # extract all unzip foo.zip file1 # just file 1 unzip foo.zip Documents/projectA/* # everything under Documents/projectA
10 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1318 | Lượt tải: 0
The rm command is used to delete files File deletion is permanent! Use -i to avoid accidental deletion when using globs Delete directories with the –r option or rmdir if the directory is completely empty
18 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1347 | Lượt tải: 0
The locate command is able to find any file as long as the user has permission to access the containing directory by searching a database of filenames on the system. The updatedb command is typically scheduled to update the locate database daily, but the root user can execute updatedb to immediately update the locate database.
26 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1143 | Lượt tải: 0
The ; character - Used to separate commands on a command line The && characters – Used to execute the second command if the first command succeeds The || characters – Used to execute the second command if the first command fails
19 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1328 | Lượt tải: 0
Use a firewall A default “deny incoming; allow outgoing” policy is very effective iptables is the built in Linux firewall system Keep up to date Your distribution should make it easy to check for, and install, upgrades Updates have fixes for security problems Check often, or have your computer do it for you
10 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1273 | Lượt tải: 0
Sell services, support, warranty Work on features in exchange for money Use Open Source in your day job/consulting Use work time to fix/improve Open Source Build paid plugins/modules (subject to license restrictions) Open Source work lends credibility to your personal brand
27 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1176 | Lượt tải: 0
Unique in that after choosing Linux you must choose a distribution Different distributions focus on different use cases, e.g. desktop, server, scientific, network Some distributions offer commercial support, most is volunteer based
21 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1381 | Lượt tải: 0
4. Điều độ ưu tiên thời gian còn lại ngắn nhất SFP có thêm cơ chế phân phối lại (SRTF) Khi 1 tiến trình mới xuất hiện trong hàng đợi, HDH so sánh thời gian còn lại của tiến trình đang chạy với thời gian còn lại của tiến trình mới xuất hiện Nếu tiến trình mới xuất hiện có thời gian còn lại ngắn hơn, HDH thu hồi CPU của tiến trình đang ch...
37 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1422 | Lượt tải: 0