الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

أسئله لكتابة بعض الأوامر في نظام اللينكس

بدأه مبرمجه مبتدئه 22 في 20 مارس 2012 · 1 رد · 851 مشاهدة · في نظام تشغيل Unix & Linux
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

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

لدي بعض الأسئله لم أعرف الإجابه عليهاا

اتمنى منكم التفاعل معي وحلها أو شرحها لي على الأقل

لاني لا أفهم شيء في نظام اللينكس

ولكن هذه الأسئله واجب منزلي علي

هي طبعا عن أوامر انفذها في نظام اللينكس

أتمنى ان تساعدوني ع الأقل في فهمها

وشكراا

الأسئله :.

الأول

I. Archiving and Compression

„h Archive all your files (in your home directory) to the file /tmp/archive.tar

„h List the content of this archive using the tar command.

„h Now perform compressed backups by gzip and bzip2 using the tar command, under the names /tmp/archive.tar.gz and /tmparchive.tar.bz2, then list the contents of those archives using the tar command.

„h Compare the file sizes of those 3 archives archive.tar, archive.tar.bz2 and archive.tar.gz. Which tool is giving the best compression rate ?

„h Compress the file archives.tar using gzip and bzip2 commands

السوال الثاني

II . vi editors

 Start the vi editor, and type the following:

packages

Software packages on Linux distributions have often the RPM (Redhat Package Manager) format. The management of these software packages is done using the command rpm in command-line, but other tools are also available such as graphical installer and yum command. Packages are recognized by their extension. name.version.architecture.rpm name format is th common one. For platforms like PC, the architecture is i386,i586 and i686. The RPM package content is an archive of a compiled software and its associated files (configuration, documentation)

 Save the file as paquetage.txt.

 Save the file under the name paquetage2.txt.

 Edit the file without leaving paquetage2.txt vi.

 Copy the first row 10 times at the end of the file.

 Search for the string RPM from the beginning.

 Replace the first occurrence of RPM with the string "Redhat Package Manager".

 Replace all other occurrences in the file.

 Number the lines of the file.

السوال الثالث

III.Symbolic Links :

 In your working directory, create two subdirectories: dir1 and dir2.

 In the subdirectory dir1, create the file called newfile.

 Then create in the subdirectory dir2 the symbolic link called link_newfile to the file newfile from dir1 subdirectory.

 Now edit the contents of newfile by the command :

echo “this is the original file” >> dir1/newfile

 Then, read the file link_newfile content using the command : cat link_newfile

 What do you notice?

 Then edit the file link_newfile by the command :

echo “this is the link file” >> dir2/link_newfile

 Then, read the file newfile content, what do you notice?

 Destroy the file newfile and then read the file link_newfile, what you notice?

هذي هي الأسئله

لكم خالص ودي

#2

up

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…