• Linux - Module 9: Basic ScriptingLinux - Module 9: Basic Scripting

    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

    pptx18 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1373 | Lượt tải: 0

  • Linux - Module 8: Pipes, Redirection and REGEXLinux - Module 8: Pipes, Redirection and REGEX

    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

    pptx70 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1357 | Lượt tải: 0

  • Linux - Module 7: Archiving and compressionLinux - Module 7: Archiving and compression

    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

    pptx10 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1318 | Lượt tải: 0

  • Linux - Module 6: Working with files and directoriesLinux - Module 6: Working with files and directories

    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

    pptx18 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1347 | Lượt tải: 0

  • Linux - Module 5: Getting HelpLinux - Module 5: Getting Help

    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.

    pptx26 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1143 | Lượt tải: 0

  • Linux - Module 4: Command line skillsLinux - Module 4: Command line skills

    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

    pptx19 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1328 | Lượt tải: 0

  • Linux - Module 3: Using LinuxLinux - Module 3: Using Linux

    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

    pptx10 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1273 | Lượt tải: 0

  • Linux - Module 2: Open source applications and licensesLinux - Module 2: Open source applications and licenses

    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

    pptx27 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1176 | Lượt tải: 0

  • Linux - Module 01: Introduction to LinuxLinux - Module 01: Introduction to Linux

    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

    pptx21 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1381 | Lượt tải: 0

  • Bài giảng môn Kiến trúc máy tính và hệ điều hành - Chương 6: Các thành phần của hệ điều hànhBài giảng môn Kiến trúc máy tính và hệ điều hành - Chương 6: Các thành phần của hệ điều hành

    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...

    pdf37 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1422 | Lượt tải: 0