Category Linux System Administration

Linux Commands are Commonly Use – 9

➡81. ‘id’ কমান্ড ব্যবহার করে বর্তমান ইউজারের বা অন্য ইউজারের UID (User ID) বের করা যাবেঃ [root@desktop ~]# id uid=0(root) gid=0(root) groups=0(root) [root@desktop ~]# id student uid=1000(student) gid=1000(student) groups=1000(student) ➡82. ‘ip link’ কমান্ড ব্যবহার করে সিস্টেমে কয়টা নেটওয়ার্ক কার্ড আছে…

Linux Commands are Commonly Use – 8

➡71. ‘gunzip’ কমান্ডের মাধ্যমে কোনো ফাইলকে Extract (De-Compress) করতে পারি। নিচের কমান্ডের মাধ্যমে আমরা ‘test.gz’ ফাইল কে extract De-Compress) করা হবে। [root@desktop ~]# gunzip file1.gz [root@desktop ~]# ls file1 ➡72. ‘getsebool’ কমান্ড ব্যাবহার করে ‘SELinux’ এর Boolean ভ্যালু জানা যাবেঃ…

Linux Commands are Commonly Use – 7

➡61. ‘getenforce’ কমান্ড ব্যবহার করে ‘SELinux’ এর মোড জানা যাবেঃ [root@desktop ~]# getenforce Enforcing ➡62. ‘getfacl’ কমান্ড ব্যবহার করে লিনাক্সে কোনো ফাইল বা ডিরেক্টরির ‘acl’ পার্মিশন জানা যাবেঃ [root@desktop ~]# getfacl file1 # file: file1# owner: root# group: supportuser::rw-group::rw-other::rw- ➡63.…

Linux Commands are Commonly Use – 5

➡ 41. ‘e2fsck’ কমান্ড ব্যবহার করে লিনাক্স সিস্টেমে ‘ext3/ext4/xfs’ টাইপের ফাইল সিস্টেম চেক (error) করা যাবে। উল্লেখ্য যে, ‘e2fsck’ কমান্ড ব্যবহারের সময় এটা unmount অবস্থায় থাকতে হবে। [root@desktop ~]# e2fsck /dev/sda3 /dev/sda3: clean, 11/873120 files, 97828/3490304 blocks ➡42. ‘e2label’ কমান্ড…

Linux Commands are Commonly Use – 4

➡31. ‘dd’ কমান্ড দিয়ে লিনাক্স সিস্টেমে কোনো ফাইল কে কপি বা কনভার্ট করতে পারেন। যেমন আপনি যদি কোনো HDD কে ক্লোন বা কপি করতে চান তাহলে নিচের কমান্ড টি দিতে পারেন। [root@desktop ~]# dd if=/dev/sda of=/dev/sdb নোট: এখানে ‘sda’ হার্ডডিস্ক…

Linux Commands are Commonly Use – 3

➡21. ‘chcon’ কমান্ড ব্যবহার করে লিনাক্স সিস্টেমের ‘SELinux Security Context’ পরিবর্তন করা যাবে। নিচের ডিরেক্টরির (newdir) বর্তমান ‘Security Context’ আছে ‘admin_home_t’ । এটাকে যদি অন্য কোনো Context ‘(httpd_sys_content_t)’ দিয়ে পরিবর্তন করতে চাই, তাহলে ‘chcon’ কমান্ডটি ব্যবহার করতে হবেঃ [root@desktop ~]#…

Linux Commands are Commonly Use – 2

➡11. ‘bzip2’ কমান্ড ব্যবহার করে কোনো ফাইলকে ‘.bz2’ আকারে Compress করা যাবেঃ [root@desktop ~]# ls anaconda-ks.cfg [root@desktop ~]# bzip2 anaconda-ks.cfg [root@desktop ~]# ls anaconda-ks.cfg.bz2 ➡12. ‘bunzip2’ কমান্ড ব্যবহার করে ‘.bz2’ টাইপের ফাইল De-Compress (Extract) করা যাবেঃ [root@desktop ~]# bunzip2 anaconda-ks.cfg.bz2…

Linux Commands are Commonly Use – 1

আমরা লিনাক্সের (CentOS/Red Hat/Ubuntu/Kali) কমান্ড গুলি Alphabetically অর্ডার অনুযায়ী শিখবো। এটা সংগ্রহে রাখার মত একটি লিস্ট এবং আশা করি সবার কাজে লাগবে। ➡01. ‘arp’ কমান্ড ব্যবহার করে Address Resulation Protocol (ARP) মাধ্যমে প্রাপ্ত বিভিন্ন মেশিন এর ‘IP’ এবং ‘MAC’ এড্রেসের…