-xএখানে অর্থ কি :
if [ -x /etc/rc.local ] then
আমি কীভাবে এই ম্যানুয়াল পৃষ্ঠাটি সন্ধান করতে পারি if?
help if?
-xএখানে অর্থ কি :
if [ -x /etc/rc.local ] then
আমি কীভাবে এই ম্যানুয়াল পৃষ্ঠাটি সন্ধান করতে পারি if?
help if?
উত্তর:
man bashপৃষ্ঠাগুলি থেকে (বিশেষত শর্তাধীন শর্তাবলী বিভাগ):
-a file
True if file exists.
-b file
True if file exists and is a block special file.
-c file
True if file exists and is a character special file.
-d file
True if file exists and is a directory.
-e file
True if file exists.
-f file
True if file exists and is a regular file.
-g file
True if file exists and is set-group-id.
-h file
True if file exists and is a symbolic link.
-k file
True if file exists and its ``sticky'' bit is set.
-p file
True if file exists and is a named pipe (FIFO).
-r file
True if file exists and is readable.
-s file
True if file exists and has a size greater than zero.
-t fd True if file descriptor fd is open and refers to a terminal.
-u file
True if file exists and its set-user-id bit is set.
-w file
True if file exists and is writable.
-x file
True if file exists and is executable.
[...]
testবাশ শুরু করেন, আপনি বাইনারিটি চালাচ্ছেন না test। আপনি পরিবর্তে, testবাশের বিল্টিনকে অনুরোধ করছেন, যেখানে help testঅন্যান্য জায়গাগুলির মধ্যে ডকুমেন্টেশন রয়েছে। man testযে কারণে কিছু ক্ষেত্রে বিভ্রান্তিকর হতে পারে।
ifনিজেই একটি শেল কীওয়ার্ড, সুতরাং আপনি এটির সাথে তথ্যটি সন্ধান করতে পারেন help if। ifপরবর্তী কমান্ডটি সত্য (0) বা মিথ্যা (শূন্য নয়) ফিরে আসে কিনা তার উপর ভিত্তি করে নিজেই কেবল শাখাগুলি। আপনি আসলে যা চান তা হ'ল, man [বা man testযেখানে [একটি উপনাম test। এই বিবৃতিটি আসলে সম্পাদন করছে test -x /etc/rc.local, যা ফাইলটি উপস্থিত রয়েছে এবং তা কার্যকর করা যায় (বা অনুসন্ধানের অনুমতি রয়েছে) তা পরীক্ষা করে।
man [খুব কাজ করে।
ifএটি শেল কীওয়ার্ডের অন্তর্নির্মিত শেল নয় type iffor এটি পরীক্ষা করার জন্য এই কমান্ডটি চালান ।
থেকে info test:
`-x FILE'
True if FILE exists and execute permission is granted (or search permission, if it is a directory).
কোনও ডিরেক্টরিতে এটি সিডি করতে সক্ষম হওয়ার জন্য নির্ধারিত অনুমতি প্রয়োজন (এটি কোনও ডিরেক্টরিকে আপনার বর্তমান ওয়ার্কিং ডিরেক্টরি তৈরি করতে)।
এর মধ্যে ফাইলগুলির "ইনোড" তথ্য অ্যাক্সেস করতে একটি ডিরেক্টরিতে এক্সিকিউট প্রয়োজন। এর মধ্যে থাকা ফাইলগুলির ইনোডগুলি পড়তে আপনাকে একটি ডিরেক্টরি অনুসন্ধান করতে হবে। এই কারণে কোনও ডিরেক্টরিতে মৃত্যুদন্ড কার্যকর করার অনুমতিটিকে তার পরিবর্তে প্রায়শই অনুসন্ধানের অনুমতি বলা হয়।