Linux-এ ফাইল এডিট করা, configuration পরিবর্তন করা বা কোড লেখা সবই সম্ভব text editors দিয়ে। Text editor হলো একটি tool যা ব্যবহার করে আমরা plain text ফাইল খুলতে, লিখতে এবং সংরক্ষণ করতে পারি।
কেন দরকার:
/etc/hosts
, .bashrc
)Linux-এ মূলত তিন ধরনের text editor আছে: Terminal-based, GUI-based, এবং Advanced editors।
Nano হলো একটি সহজ এবং beginner-friendly terminal text editor।
Ctrl + O
(write), Ctrl + X
(exit)Ctrl + K
(cut), Ctrl + U
(paste)Command:
nano filename.txt
Use case:
Vim হলো highly configurable এবং power-user oriented terminal editor।
i
)v
):
)Command:
vim filename.txt
Basic Commands:
i
→ insert modeEsc
→ normal mode:w
→ save:q
→ quit:wq
→ save & quit:q!
→ quit without savingUse case:
Gedit হলো Linux-এর GUI-based text editor।
Command (Terminal or Application Menu):
gedit filename.txt &
Use case:
Editor | Type | Pros | Cons |
---|---|---|---|
Nano | Terminal | Easy, beginner-friendly | Limited features |
Vim | Terminal | Powerful, efficient | Steep learning curve |
Gedit | GUI | Visual, easy to use | Requires GUI, less efficient on server |
সারাংশ: