Курсов проект КМ 2012/2013

From Ilianko
Revision as of 20:14, 24 November 2012 by Anko (talk | contribs) (Created page with "#Bash Shell ##Write a Bourne shell script that takes a list of integers as the command line argument and displays a list of their squares and the sum of the numbers in the list o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  1. Bash Shell
    1. Write a Bourne shell script that takes a list of integers as the command line argument and displays a list of their squares and the sum of the numbers in the list of squares.
    2. Write a Bourne shell script that takes a machine name as an argument and displays a message informing you whether the host is on the local network.
    3. Write a shell script to help monitor the health of your /etc/passwd file.
    4. Find entries that have UID 0.
      • Find entries that have that have no password (needs /etc/shadow).
      • Find any sets of entries that have duplicate UIDs.
      • Find entries that have duplicate login names.
      • Find entries that have no expiration date (needs /etc/shadow).