• 0
  • مالي خلق
  • أتهاوش
  • متضايق
  • مريض
  • مستانس
  • مستغرب
  • مشتط
  • أسولف
  • مغرم
  • معصب
  • منحرج
  • آكل
  • ابكي
  • ارقص
  • اصلي
  • استهبل
  • اضحك
  • اضحك  2
  • تعجبني
  • بضبطلك
  • رايق
  • زعلان
  • عبقري
  • نايم
  • طبيعي
  • كشخة
  • النتائج 1 إلى 5 من 5

    الموضوع: اريد المساعده في حل بعض الاسئله التي لا يعجركم حلها

    1. #1
      التسجيل
      30-06-2001
      الدولة
      -
      المشاركات
      111
      المواضيع
      10
      شكر / اعجاب مشاركة

      اريد المساعده في حل بعض الاسئله التي لا يعجركم حلها

      السلام عليكم ورحمة الله وبركاته

      عندما بحثت عند مساعده في حل هذه الاسئله قيل لي ان جوابها لن يكون الا عند مرتادين هذا المنتدى الرائع.

      لقد حاولت اجابت تعضها على قدر معلوماتي المتواضعه و واجهت صعوبه في اجابت بقيتها.

      لهذا سوف اطرح جميع الاسئله مع التي اجبتها فلربما كنت مخطأ في بعضها فتنبهوني عن خطائ.

      Q1. These questions test you overall understanding of how files and directories are structured in UNIX .

      A) UNIX may be considered a hierarchical file system, using directories to organize files. Consider a simple structure that consists of a directory called "/" or "root" that contains the three directories named "bin", "usr" and "export". Within "usr" there are a further two directories named "local" and "tmp". Draw the hierarchical structure of the directories described.

      B) Due to the popularity of Microsoft operating systems for home PCs, most people are familiar with the notion of drive letters (e.g., "C:"). However, in UNIX systems these drive letters are absent. In UNIX multiple drives may exist, but the physical distribution of these drives is hidden from the user. To make distinct drives available in Windows we must "map" them to a drive letter. What is the term used (equivalent to "map") in UNIX when we describe the process of making drives available?
      Mount

      Q2. These questions test your understanding of how to navigate a UNIX file system .

      A) Identify the UNIX command required to carry out following instructions:

      i) List contents of current directory.

      ls -la

      ii) Move into directory "/usr/local".

      cd usr/local

      iii) Print on screen the current directory (the directory that you are in).
      pwd

      iv) Remove all files in the directory "/tmp"

      rm /tmp/*

      B) Identify the UNIX command to carry out the following instructions:

      i) Make a directory called "hello" as a sub-directory of the current directory.

      mkdir hello

      ii) Remove the just created directory "hello"

      rmdir hello

      iii) Create a file named "myFile" in the current directory.

      touch myFile

      iv) List the contents of the current directory ensuring that all Directories in the listing are identified.

      C) The use of wildcards is commonplace in UNIX. Describe, with an example, the function of the following wildcards:

      i) *

      ii) ?
      Q3. These questions test your knowledge of access privileges .

      A) What are the main distinct access groups that can be associated with a file/directory
      .
      Three types: u-- user, g -- group, a-- everyone

      B) Write the command to change the privileges of the file "myFile" so everyone can read it, only user may write to it and no user may execute it.

      chmod a+r myFile; chmod a-x-w myFile; chmod u+w myFile

      Q4. These questions test your knowledge of environmental variables .

      A) What useful purpose do the environments variables $PATH and $HOME provide?

      B) Write the command to amend (not simply replace) the directory "/usr/local/bin" to your PATH.

      C) Write the command to change the default editor to "nedit".

      Q5 These questions test your ability to manipulate processes
      .
      A) Write the command that displays all process information on the current machine.

      ps -a

      B) Write the command that removes the process with the name "netscape" and process ID "491".

      for netscape,use "Ctrl + c"; for ID491,use "kill 491"

      C) Write the command that redirects the list of all processes on the machine to a file called "myProcessFile".

      Q6. These questions allow you to demonstrate your ability to use scripts (bourne shell) .

      A) Write a script that provides a file, "MyFiles", that contains a list of all the files in the current directory and displays on the screen the number of files present in the current directory.

      B) Write a script that moves all the files that end in ".txt" from the current directory to another (target) directory. The target directory should be identified via a parameter passed to the script. This script should also produce a text file ("filesCopied") that lists all files that have been moved.

      C) Write a script that reads in ten numbers (either one at a time during script execution or as parameters) and prints to the screen the sum of these numbers (hint - you may need to check out the "read" command).

      D) Alter the previous script to allow it to work for arbitrary lists of numbers.


      شاكرا لكم تعاونكم
      التعديل الأخير تم بواسطة السهران ; 08-11-2003 الساعة 04:47 AM
      [flash]http://mypage.ayna.com/me2002/hjh.swf[/flash]

    2. #2
      التسجيل
      24-07-2003
      المشاركات
      403
      المواضيع
      34
      شكر / اعجاب مشاركة

      Re: اريد المساعده في حل بعض الاسئله التي لا يعجركم حلها

      السؤال الافضل ، من أين لك هذه الأسئلة
      ممكن تزودنا بعنوان الموقع
      إذا كنت مبتدئ في Linux فأنصحك بشده بأن تشتري بعض الكتب (توجد العديد من الكتب العربيه) عن Linux لتتعلم لينكس خطوه خطوه و تصبح محترف به لان المنتدى لن يعلمك Linux لكن فقط سوف يساعدك في حل المشاكل الغير مذكوره في الكتاب

      المتجر الإلكتروني لبيع توزيعات لينوكس http://eShop.4-sms.com

      شارك في ترجمة برنامج موزيلا إضغط هنا

      اااه يا بغداد يا عاصمة الخلافة

      اللهم أرزقنا الشهاده في سبيلك مقبلين غير مدبرين عاجلا غير اجل

    3. #3
      التسجيل
      30-06-2001
      الدولة
      -
      المشاركات
      111
      المواضيع
      10
      شكر / اعجاب مشاركة
      صراحة يا أخ مسك, ان هذه الاسئله قدمت لي من ضمن ماده ادرسها. فهيا ليست من موقع او ما شابه.

      اذا كنت يا أخ مسك تستطيع مساعدتي بها اكون لك من الشاكرين.
      [flash]http://mypage.ayna.com/me2002/hjh.swf[/flash]

    4. #4
      التسجيل
      16-04-2001
      الدولة
      Amman, Jordan
      المشاركات
      450
      المواضيع
      24
      شكر / اعجاب مشاركة

      Re: اريد المساعده في حل بعض الاسئله التي لا يعجركم حلها

      كود:
      Q2 - A - ii) cd /usr/local
      
      نسيت ال / قبل usr
      
      Q2 - B - iv) ls -l
      
      you will see all the directories listed with the attribute d added to thier attribute column (first column)
      
      Q2 - C - i) *: any number of characters
      Q2 - C - ii) one character only
      
      Q4 - A) PATH gives the search PATH for commands that you call to execute. 
      HOME tells the home directory url for the current logged in user.
      
      Q4 - B) export PATH=/usr/local/bin:$PATH
      
      Q5 - A) well "ps -a" will display all user processes. But for all processes int eh machine you have to use "ps -A"
      
      Q5 - B) don't mention the Ctrl-C :) 
      To will the process at once use:
      kill -9 491
      
      Q5 - C) ps -A > myProcessFile
      بالنسبة للسكريبت جرب أعملهم لوحدك .. مافي صعوبة فيهم ..

    5. #5
      التسجيل
      30-06-2001
      الدولة
      -
      المشاركات
      111
      المواضيع
      10
      شكر / اعجاب مشاركة
      شكرا يا أخ إسلام

      فقد فرجت عني كربة كنت فيها
      [flash]http://mypage.ayna.com/me2002/hjh.swf[/flash]

    ضوابط المشاركة

    • لا تستطيع إضافة مواضيع جديدة
    • لا تستطيع الرد على المواضيع
    • لا تستطيع إرفاق ملفات
    • لا تستطيع تعديل مشاركاتك
    •