You are currently viewing Linux Commands are Commonly Use – 8

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 ভ্যালু জানা যাবেঃ

[root@desktop ~]# getsebool -a

httpd_anon_write –> off

ftpd_anon_write –> off

samba_create_home_dirs –> off

➡73. ‘grub2-setpassword’ কমান্ডের মাধ্যমে ‘grub.cfg’ ফাইলে পাসওয়ার্ড সেট করা যায়ঃ

[root@desktop ~]# grub2-setpassword

Enter password: ******

Confirm password: ******

➡74. ‘halt’ কমান্ড ব্যবহার করে সিস্টেম বন্ধ (Poweroff) বা রিস্টার্ট (Reboot) করা যাবেঃ

[root@desktop ~]# halt –p

[root@desktop ~]# halt –-reboot

➡75. ‘head’ কমান্ড ব্যবহার করে নির্দিষ্ট কোনো ফাইলের প্রথম দশ (১০) লাইন দেখা যাবে। চাইলে অপশন ব্যবহার করে ইচ্ছামত লাইন দেখা যাবেঃ

[root@desktop ~]# head /etc/passwd

[root@desktop ~]# head -5 /etc/passwd

➡76. ‘history’ কমান্ড ব্যবহার করে টার্মিনালে এ পর্যন্ত কতগুলা কমান্ড ব্যবহার করা হয়েছে সেটা জানা যাবে। পাশাপাশি ‘history -c’ কমান্ড ব্যবহার করে History মুছে দেওয়া যাবেঃ

[root@desktop ~]# history

[root@desktop ~]# history –c

[root@desktop ~]# history

➡77. ‘hostname’ ব্যবহার করে সিস্টেমের হোস্ট নাম, ডোমেইন নাম, আইপি (IP) জানা যাবেঃ

[root@desktop ~]# hostname

[root@desktop ~]# hostname –d

[root@desktop ~]# hostname -s

[root@desktop ~]# hostname -i

➡78. ‘help’ কমান্ড ব্যবহার করে যে কোনো কমান্ডের অপশন, আর্গুমেন্ট, ব্যবহার বিস্তারিত জানা যাবেঃ

[root@desktop ~]# ping –help

[root@desktop ~]# ifconfig –help

[root@desktop ~]# useradd –help

➡79. ‘hostnamectl’ কমান্ড ব্যবহার করে লিনাক্স সিস্টেমের হোস্টনাম পরিবর্তন করা যাবেঃ

[root@desktop ~]# hostnamectl set-hostname server.example.com

[root@desktop ~]# bash

[root@desktop ~]# hostname

server.example.com

➡80. ‘hwclock’ কমান্ড ব্যবহার করে সিস্টেমের RTC (BIOS) টাইম জানা যাবে। সিস্টেম টাইম যদি কোনো কারণে পরিবর্তন করা হয়ে থাকে, তাহলে RTC (BIOS) টাইম জানার জন্য ‘hwclock’কমান্ড ব্যবহার করা হয়।

[root@desktop ~]# date

[root@desktop ~]# hwclock

‘hwclock’ কমান্ড ব্যবহার করে আমরা চাইলে RTC(BIOS) টাইম পরিবর্তন করতে পারি।

[root@desktop ~]# hwclock –set –date=’2021-10-06 07:54:05′

[root@desktop ~]# hwclock

2021-10-06 07:54:07.681234+06:00

Leave a Reply