קורס Bash Shell Scripts שיעור אנחנו נבחר ב Bash


זה נושא דיון מלווה לערך המקורי ב- https://www.tocode.co.il/bundles/bash-shell-scripts/lessons/%D7%90%D7%A0%D7%97%D7%A0%D7%95-%D7%A0%D7%91%D7%97%D7%A8-%D7%91-bash

הי ינון,
לא בדיוק הבנתי, הפעלת התוכנית בפקודה:
man cd
לא עובדת באובונטו כדי לקבל תפריט פקודות “הבנויות”.

האם כדי לקבל זאת, יש לרשום:
man builtins?

הי ניר,

כל הפקודות הבנויות ב Shell הן לא באמת ״תוכניות״ ולכן אין להן Man Pages. כמו שראית אפשר להגיע לתיעוד חלקי שלהן עם man builtins. דרך נוספת יותר קלה היא להשתמש בפקודה help, למשל:

$ help cd

cd: cd [-L|-P] [dir]
    Change the current directory to DIR.  The variable $HOME is the
    default DIR.  The variable CDPATH defines the search path for
    the directory containing DIR.  Alternative directory names in CDPATH
    are separated by a colon (:).  A null directory name is the same as
    the current directory, i.e. `.'.  If DIR begins with a slash (/),
    then CDPATH is not used.  If the directory is not found, and the
    shell option `cdable_vars' is set, then try the word as a variable
    name.  If that variable has a value, then cd to the value of that
    variable.  The -P option says to use the physical directory structure
    instead of following symbolic links; the -L option forces symbolic links
    to be followed.

וזה עובד לכל אחת מהפקודות המובנות ב Shell

תודה ינון.

בקטעי הוידאו מופיעות מצגות עם מידע נוסף כולל דוגמאות.
תוכל לשלוח הפניה לאותם קבצים?

תודה מראש

הי,

זה הריפוזיטורי של המצגות (הן כתובות בטכנולוגיה שנקראת reveal.js):

אתה יכול לנסות להוריד ולהריץ אצלך אבל יותר קל להיכנס ל-2 הקבצים part1.md ו part2.md שם בהם יש את כל השקפים