ലിനക്സ് വിദഗ്ധർക്കുള്ള 20 വിപുലമായ കമാൻഡുകൾ
ഈ ലേഖനത്തിന്റെ ആദ്യ രണ്ട് ഭാഗങ്ങളിൽ നിങ്ങൾ ഞങ്ങൾക്ക് നൽകിയ എല്ലാ ലൈക്കുകൾക്കും നല്ല വാക്കുകൾക്കും പിന്തുണയ്ക്കും നന്ദി. ആദ്യ ലേഖനത്തിൽ, ലിനക്സിലേക്ക് മാറിയ ഉപയോക്താക്കൾക്കുള്ള കമാൻഡുകൾ ഞങ്ങൾ ചർച്ച ചെയ്തു, ആരംഭിക്കുന്നതിന് ആവശ്യമായ അറിവ് ആവശ്യമാണ്.
- Linux ന്യൂബികൾക്കായി 20 ഉപയോഗപ്രദമായ കമാൻഡുകൾ
രണ്ടാമത്തെ ലേഖനത്തിൽ, ഒരു മിഡിൽ ലെവൽ ഉപയോക്താവിന് സ്വന്തം സിസ്റ്റം നിയന്ത്രിക്കാൻ ആവശ്യമായ കമാൻഡുകൾ ഞങ്ങൾ ചർച്ച ചെയ്തു.
- മിഡിൽ ലെവൽ ലിനക്സ് ഉപയോക്താക്കൾക്കുള്ള 20 വിപുലമായ കമാൻഡുകൾ
അടുത്തത് എന്താണ്? ഈ ലേഖനത്തിൽ ലിനക്സ് സെർവർ നിയന്ത്രിക്കുന്നതിന് ആവശ്യമായ ആ കമാൻഡുകൾ ഞാൻ വിശദീകരിക്കും.
41. കമാൻഡ്: ifconfig
ifconfig കേർണൽ-റെസിഡന്റ് നെറ്റ്uവർക്ക് ഇന്റർഫേസുകൾ ക്രമീകരിക്കുന്നതിന് ഉപയോഗിക്കുന്നു. ആവശ്യാനുസരണം ഇന്റർഫേസുകൾ സജ്ജീകരിക്കുന്നതിന് ബൂട്ട് സമയത്ത് ഇത് ഉപയോഗിക്കുന്നു. അതിനുശേഷം, ഡീബഗ്ഗ് ചെയ്യുമ്പോൾ അല്ലെങ്കിൽ സിസ്റ്റം ട്യൂണിംഗ് ആവശ്യമുള്ളപ്പോൾ മാത്രമേ ഇത് സാധാരണയായി ആവശ്യമുള്ളൂ.
[[email ~]$ ifconfig eth0 Link encap:Ethernet HWaddr 40:2C:F4:EA:CF:0E inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::422c:f4ff:feea:cf0e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:163843 errors:0 dropped:0 overruns:0 frame:0 TX packets:124990 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:154389832 (147.2 MiB) TX bytes:65085817 (62.0 MiB) Interrupt:20 Memory:f7100000-f7120000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:78 errors:0 dropped:0 overruns:0 frame:0 TX packets:78 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4186 (4.0 KiB) TX bytes:4186 (4.0 KiB)
-a ആർഗ്യുമെന്റ് ഉപയോഗിച്ച് പ്രവർത്തനരഹിതമാക്കിയ ഇന്റർഫേസുകൾ ഉൾപ്പെടെ എല്ലാ ഇന്റർഫേസുകളുടെയും വിശദാംശങ്ങൾ പ്രദർശിപ്പിക്കുക.
[[email ~]$ ifconfig -a eth0 Link encap:Ethernet HWaddr 40:2C:F4:EA:CF:0E inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::422c:f4ff:feea:cf0e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:163843 errors:0 dropped:0 overruns:0 frame:0 TX packets:124990 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:154389832 (147.2 MiB) TX bytes:65085817 (62.0 MiB) Interrupt:20 Memory:f7100000-f7120000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:78 errors:0 dropped:0 overruns:0 frame:0 TX packets:78 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4186 (4.0 KiB) TX bytes:4186 (4.0 KiB) virbr0 Link encap:Ethernet HWaddr 0e:30:a3:3a:bf:03 inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
[[email ~]$ ifconfig eth0 down
[[email ~]$ ifconfig eth0 up
eth0 എന്ന ഇന്റർഫേസിന്റെ ഐപി വിലാസമായി “192.168.1.12” നൽകുക.
[[email ~]$ ifconfig eth0 192.168.1.12
[[email ~]$ ifconfig eth0 netmask 255.255.255.
[[email ~]$ ifconfig eth0 broadcast 192.168.1.255
[[email ~]$ ifconfig eth0 192.168.1.12 netmask 255.255.255.0 broadcast 192.168.1.255
ശ്രദ്ധിക്കുക: ഒരു വയർലെസ് നെറ്റ്uവർക്ക് ഉപയോഗിക്കുകയാണെങ്കിൽ നിങ്ങൾ iwconfig കമാൻഡ് ഉപയോഗിക്കേണ്ടതുണ്ട്. കൂടുതൽ “ifconfig” കമാൻഡ് ഉദാഹരണങ്ങൾക്കും ഉപയോഗത്തിനും, 15 ഉപയോഗപ്രദമായ \ifconfig കമാൻഡുകൾ വായിക്കുക.
42. കമാൻഡ്: netstat
netstat കമാൻഡ് നെറ്റ്uവർക്ക് കണക്ഷനുകൾ, റൂട്ടിംഗ് ടേബിളുകൾ, ഇന്റർഫേസ് സ്ഥിതിവിവരക്കണക്കുകൾ, മാസ്uക്വറേഡ് കണക്ഷനുകൾ, മൾട്ടികാസ്റ്റ് അംഗത്വങ്ങൾ തുടങ്ങി വിവിധ നെറ്റ്uവർക്കുമായി ബന്ധപ്പെട്ട വിവരങ്ങൾ പ്രദർശിപ്പിക്കുന്നു.,
[[email ~]$ netstat -a Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path unix 2 [ ACC ] STREAM LISTENING 741379 /run/user/user1/keyring-I5cn1c/gpg unix 2 [ ACC ] STREAM LISTENING 8965 /var/run/acpid.socket unix 2 [ ACC ] STREAM LISTENING 18584 /tmp/.X11-unix/X0 unix 2 [ ACC ] STREAM LISTENING 741385 /run/user/user1/keyring-I5cn1c/ssh unix 2 [ ACC ] STREAM LISTENING 741387 /run/user/user1/keyring-I5cn1c/pkcs11 unix 2 [ ACC ] STREAM LISTENING 20242 @/tmp/dbus-ghtTjuPN46 unix 2 [ ACC ] STREAM LISTENING 13332 /var/run/samba/winbindd_privileged/pipe unix 2 [ ACC ] STREAM LISTENING 13331 /tmp/.winbindd/pipe unix 2 [ ACC ] STREAM LISTENING 11030 /var/run/mysqld/mysqld.sock unix 2 [ ACC ] STREAM LISTENING 19308 /tmp/ssh-qnZadSgJAbqd/agent.3221 unix 2 [ ACC ] STREAM LISTENING 436781 /tmp/HotShots unix 2 [ ACC ] STREAM LISTENING 46110 /run/user/ravisaive/pulse/native unix 2 [ ACC ] STREAM LISTENING 19310 /tmp/gpg-zfE9YT/S.gpg-agent ....
[[email ~]$ netstat -at Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 localhost:mysql *:* LISTEN tcp 0 0 *:5901 *:* LISTEN tcp 0 0 *:5902 *:* LISTEN tcp 0 0 *:x11-1 *:* LISTEN tcp 0 0 *:x11-2 *:* LISTEN tcp 0 0 *:5938 *:* LISTEN tcp 0 0 localhost:5940 *:* LISTEN tcp 0 0 ravisaive-OptiPl:domain *:* LISTEN tcp 0 0 ravisaive-OptiPl:domain *:* LISTEN tcp 0 0 localhost:ipp *:* LISTEN tcp 0 0 ravisaive-OptiPle:48270 ec2-23-21-236-70.c:http ESTABLISHED tcp 0 0 ravisaive-OptiPle:48272 ec2-23-21-236-70.c:http TIME_WAIT tcp 0 0 ravisaive-OptiPle:48421 bom03s01-in-f22.1:https ESTABLISHED tcp 0 0 ravisaive-OptiPle:48269 ec2-23-21-236-70.c:http ESTABLISHED tcp 0 0 ravisaive-OptiPle:39084 channel-ecmp-06-f:https ESTABLISHED ...
[[email ~]$ netstat -s Ip: 4994239 total packets received 0 forwarded 0 incoming packets discarded 4165741 incoming packets delivered 3248924 requests sent out 8 outgoing packets dropped Icmp: 29460 ICMP messages received 566 input ICMP message failed. ICMP input histogram: destination unreachable: 98 redirects: 29362 2918 ICMP messages sent 0 ICMP messages failed ICMP output histogram: destination unreachable: 2918 IcmpMsg: InType3: 98 InType5: 29362 OutType3: 2918 Tcp: 94533 active connections openings 23 passive connection openings 5870 failed connection attempts 7194 connection resets received ....
ശരി! ചില കാരണങ്ങളാൽ, നെറ്റ്സ്റ്റാറ്റിന്റെ ഔട്ട്പുട്ടായി ഹോസ്റ്റ്, പോർട്ട്, ഉപയോക്തൃ നാമം എന്നിവ പരിഹരിക്കേണ്ടതില്ല.
[[email ~]$ netstat -an
കൊള്ളാം, ഇന്ററപ്റ്റ് ഇൻസ്ട്രക്ഷൻ പാസ്സാകുന്നത് വരെ നിങ്ങൾക്ക് തുടർച്ചയായി നെറ്റ്സ്റ്റാറ്റിന്റെ ഔട്ട്പുട്ട് ലഭിക്കേണ്ടി വന്നേക്കാം (ctrl+c).
[[email ~]$ netstat -c
കൂടുതൽ “netstat” കമാൻഡ് ഉദാഹരണങ്ങൾക്കും ഉപയോഗത്തിനും, ലേഖനം 20 Netstat കമാൻഡ് ഉദാഹരണങ്ങൾ കാണുക.
43. കമാൻഡ്: nslookup
ഇന്റർനെറ്റ് സെർവറുകളെ കുറിച്ചുള്ള വിവരങ്ങൾ ലഭിക്കാൻ ഉപയോഗിക്കുന്ന ഒരു നെറ്റ്uവർക്ക് യൂട്ടിലിറ്റി പ്രോഗ്രാം. അതിന്റെ പേര് സൂചിപ്പിക്കുന്നത് പോലെ, യൂട്ടിലിറ്റി DNS അന്വേഷിച്ച് ഡൊമെയ്uനുകൾക്കായുള്ള നെയിം സെർവർ വിവരങ്ങൾ കണ്ടെത്തുന്നു.
[[email ~]$ nslookup linux-console.net Server: 192.168.1.1 Address: 192.168.1.1#53 Non-authoritative answer: Name: linux-console.net Address: 50.16.67.239
[[email ~]$ nslookup -query=mx linux-console.net Server: 192.168.1.1 Address: 192.168.1.1#53 Non-authoritative answer: linux-console.net mail exchanger = 0 smtp.secureserver.net. linux-console.net mail exchanger = 10 mailstore1.secureserver.net. Authoritative answers can be found from:
[[email ~]$ nslookup -type=ns linux-console.net Server: 192.168.1.1 Address: 192.168.1.1#53 Non-authoritative answer: linux-console.net nameserver = ns3404.com. linux-console.net nameserver = ns3403.com. Authoritative answers can be found from:
[[email ~]$ nslookup -type=any linux-console.net Server: 192.168.1.1 Address: 192.168.1.1#53 Non-authoritative answer: linux-console.net mail exchanger = 10 mailstore1.secureserver.net. linux-console.net mail exchanger = 0 smtp.secureserver.net. linux-console.net nameserver = ns06.domaincontrol.com. linux-console.net nameserver = ns3404.com. linux-console.net nameserver = ns3403.com. linux-console.net nameserver = ns05.domaincontrol.com. Authoritative answers can be found from:
[[email ~]$ nslookup -type=soa linux-console.net Server: 192.168.1.1 Address: 192.168.1.1#53 Non-authoritative answer: linux-console.net origin = ns3403.hostgator.com mail addr = dnsadmin.gator1702.hostgator.com serial = 2012081102 refresh = 86400 retry = 7200 expire = 3600000 minimum = 86400 Authoritative answers can be found from:
നിങ്ങൾ ബന്ധിപ്പിക്കാൻ ആഗ്രഹിക്കുന്ന പോർട്ട് നമ്പർ മാറ്റുക
[[email ~]$ nslookup -port 56 linux-console.net Server: linux-console.net Address: 50.16.76.239#53 Name: 56 Address: 14.13.253.12
44. കമാൻഡ്: dig
ഹോസ്റ്റ് വിലാസങ്ങൾ, മെയിൽ എക്സ്ചേഞ്ചുകൾ, നെയിംസെർവറുകൾ, അനുബന്ധ വിവരങ്ങൾ എന്നിവയെക്കുറിച്ചുള്ള വിവരങ്ങൾക്കായി ഡിഎൻഎസ് നെയിംസെർവറുകളെ അന്വേഷിക്കുന്നതിനുള്ള ഒരു ഉപകരണമാണ് dig. ഏത് Linux (Unix) അല്ലെങ്കിൽ Macintosh OS X ഓപ്പറേറ്റിംഗ് സിസ്റ്റത്തിൽ നിന്നും ഈ ഉപകരണം ഉപയോഗിക്കാം. ഡിഗിന്റെ ഏറ്റവും സാധാരണമായ ഉപയോഗം ഒരൊറ്റ ഹോസ്റ്റിനെ അന്വേഷിക്കുക എന്നതാണ്.
[[email ~]$ dig linux-console.net ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> linux-console.net ;; global options: +cmd ;; Got answer: ;; ->>HEADER<
[[email ~]$ dig linux-console.net +nocomments ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> linux-console.net +nocomments ;; global options: +cmd ;linux-console.net. IN A linux-console.net. 14400 IN A 40.216.66.239 ;; Query time: 418 msec ;; SERVER: 192.168.1.1#53(192.168.1.1) ;; WHEN: Sat Jun 29 13:53:22 2013 ;; MSG SIZE rcvd: 45
[[email ~]$ dig linux-console.net +noauthority ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> linux-console.net +noauthority ;; global options: +cmd ;; Got answer: ;; ->>HEADER<
[[email ~]$ dig linux-console.net +noadditional ; <<>> DiG 9.9.2-P1 <<>> linux-console.net +noadditional ;; global options: +cmd ;; Got answer: ;; ->>HEADER<
[[email ~]$ dig linux-console.net +nostats ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> linux-console.net +nostats ;; global options: +cmd ;; Got answer: ;; ->>HEADER<
[[email ~]$ dig linux-console.net +noanswer ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> linux-console.net +noanswer ;; global options: +cmd ;; Got answer: ;; ->>HEADER<
[[email ~]$ dig linux-console.net +noall ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> linux-console.net +noall ;; global options: +cmd
45. കമാൻഡ്: പ്രവർത്തനസമയം
നിങ്ങൾ ഇപ്പോൾ നിങ്ങളുടെ Linux സെർവർ മെഷീനിലേക്ക് കണക്റ്റുചെയ്uതു, അസാധാരണമോ ക്ഷുദ്രകരമോ ആയ എന്തെങ്കിലും കണ്ടെത്തി, നിങ്ങൾ എന്തുചെയ്യും? ഊഹിക്കുന്നു…. ഇല്ല, സെർവർ ശ്രദ്ധിക്കാതിരുന്നപ്പോൾ യഥാർത്ഥത്തിൽ എന്താണ് സംഭവിച്ചതെന്ന് പരിശോധിക്കാൻ നിങ്ങൾക്ക് പ്രവർത്തനസമയം പ്രവർത്തിപ്പിക്കാനാകില്ല.
[[email ~]$ uptime 14:37:10 up 4:21, 2 users, load average: 0.00, 0.00, 0.04
46. കമാൻഡ്: മതിൽ
അഡ്മിനിസ്ട്രേറ്റർക്കുള്ള ഏറ്റവും പ്രധാനപ്പെട്ട കമാൻഡുകളിലൊന്നായ മതിൽ ലോഗിൻ ചെയ്uത എല്ലാവർക്കും അവരുടെ മെസ്സഗ് പെർമിഷൻ അതെ എന്ന് സജ്ജീകരിച്ച് ഒരു സന്ദേശം അയയ്ക്കുന്നു. സന്ദേശം ഭിത്തിക്ക് ഒരു ആർഗ്യുമെന്റായി നൽകാം, അല്ലെങ്കിൽ അത് വാളിന്റെ സ്റ്റാൻഡേർഡ് ഇൻപുട്ടിലേക്ക് അയയ്ക്കാം.
[[email ~]$ wall "we will be going down for maintenance for one hour sharply at 03:30 pm" Broadcast message from [email (pts/0) (Sat Jun 29 14:44:02 2013): we will be going down for maintenance for one hour sharply at 03:30 pm
47. കമാൻഡ്: mesg
സ്uക്രീനിലൂടെ നിങ്ങൾക്ക് ടെക്uസ്uറ്റ് അയയ്uക്കാൻ ആളുകൾക്ക് \write കമാൻഡ് ഉപയോഗിക്കാനാകുമോ എന്ന് നിയന്ത്രിക്കാൻ നിങ്ങളെ അനുവദിക്കുന്നു.
mesg [n|y] n - prevents the message from others popping up on the screen. y – Allows messages to appear on your screen.
48. കമാൻഡ്: എഴുതുക
'mesg' 'y' ആണെങ്കിൽ മറ്റൊരു ലിനക്സ് മെഷീന്റെ സ്ക്രീനിലേക്ക് നേരിട്ട് ടെക്സ്റ്റ് അയയ്ക്കാൻ നിങ്ങളെ അനുവദിക്കുക.
[[email ~]$ write ravisaive
49. കമാൻഡ്: സംസാരിക്കുക
കമാൻഡ് എഴുതുന്നതിനുള്ള ഒരു മെച്ചപ്പെടുത്തൽ, ലോഗിൻ ചെയ്തിരിക്കുന്ന ഉപയോക്താക്കളോട് സംസാരിക്കാൻ ടോക്ക് കമാൻഡ് നിങ്ങളെ അനുവദിക്കുന്നു.
[[email ~]$ talk ravisaive
ശ്രദ്ധിക്കുക: ടോക്ക് കമാൻഡ് ഇൻസ്റ്റാൾ ചെയ്തിട്ടില്ലെങ്കിൽ, നിങ്ങൾക്ക് എല്ലായ്uപ്പോഴും ആവശ്യമായ പാക്കേജുകൾ യോജിപ്പിക്കാം അല്ലെങ്കിൽ yum ചെയ്യാം.
[[email ~]$ yum install talk OR [[email ~]$ apt-get install talk
50. കമാൻഡ്: w
ഏത് കമാൻഡ് 'w' നിങ്ങൾക്ക് തമാശയായി തോന്നുന്നു? എന്നാൽ യഥാർത്ഥത്തിൽ അങ്ങനെയല്ല. ഇത് ഒരു കമാൻഡ് ആണ്, അത് ഒരു അക്ഷരം മാത്രമാണെങ്കിൽ പോലും! “w” എന്ന കമാൻഡ് പ്രവർത്തനസമയവും ആ ക്രമത്തിൽ ഒന്നിനു പുറകെ ഒന്നായി നൽകുന്ന കമാൻഡിന്റെ സംയോജനമാണ്.
[[email ~]$ w 15:05:42 up 4:49, 3 users, load average: 0.02, 0.01, 0.00 USER TTY FROM [email IDLE JCPU PCPU WHAT server tty7 :0 14:06 4:43m 1:42 0.08s pam: gdm-passwo server pts/0 :0.0 14:18 0.00s 0.23s 1.65s gnome-terminal server pts/1 :0.0 14:47 4:43 0.01s 0.01s bash
51. കമാൻഡ്: പേരുമാറ്റുക
പേര് സൂചിപ്പിക്കുന്നത് പോലെ, ഈ കമാൻഡ് ഫയലുകളുടെ പേരുമാറ്റുന്നു. പുനർനാമകരണം ഫയൽ നാമത്തിൽ നിന്നുള്ള ആദ്യ സംഭവത്തിന് പകരമായി നിർദ്ദിഷ്ട ഫയലുകളെ പുനർനാമകരണം ചെയ്യും.
Give the file names a1, a2, a3, a4.....1213
കമാൻഡ് ടൈപ്പ് ചെയ്താൽ മതി.
rename a1 a0 a? rename a1 a0 a??
52. കമാൻഡ്: മുകളിൽ
സിപിയു പ്രക്രിയകൾ പ്രദർശിപ്പിക്കുന്നു. ഈ കമാൻഡ് ഡിഫോൾട്ടായി യാന്ത്രികമായി പുതുക്കുകയും ഇന്ററപ്റ്റ്-നിർദ്ദേശം നൽകിയിട്ടില്ലെങ്കിൽ സിപിയു പ്രക്രിയകൾ കാണിക്കുന്നത് തുടരുകയും ചെയ്യുന്നു.
[[email ~]$ top top - 14:06:45 up 10 days, 20:57, 2 users, load average: 0.10, 0.16, 0.21 Tasks: 240 total, 1 running, 235 sleeping, 0 stopped, 4 zombie %Cpu(s): 2.0 us, 0.5 sy, 0.0 ni, 97.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 2028240 total, 1777848 used, 250392 free, 81804 buffers KiB Swap: 3905532 total, 156748 used, 3748784 free, 381456 cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 23768 ravisaiv 20 0 1428m 571m 41m S 2.3 28.9 14:27.52 firefox 24182 ravisaiv 20 0 511m 132m 25m S 1.7 6.7 2:45.94 plugin-containe 26929 ravisaiv 20 0 5344 1432 972 R 0.7 0.1 0:00.07 top 24875 ravisaiv 20 0 263m 14m 10m S 0.3 0.7 0:02.76 lxterminal 1 root 20 0 3896 1928 1228 S 0.0 0.1 0:01.62 init 2 root 20 0 0 0 0 S 0.0 0.0 0:00.06 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:17.28 ksoftirqd/0 5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H 7 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/u:0H 8 root rt 0 0 0 0 S 0.0 0.0 0:00.12 migration/0 9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh 10 root 20 0 0 0 0 S 0.0 0.0 0:26.94 rcu_sched 11 root rt 0 0 0 0 S 0.0 0.0 0:01.95 watchdog/0 12 root rt 0 0 0 0 S 0.0 0.0 0:02.00 watchdog/1 13 root 20 0 0 0 0 S 0.0 0.0 0:17.80 ksoftirqd/1 14 root rt 0 0 0 0 S 0.0 0.0 0:00.12 migration/1 16 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/1:0H 17 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 cpuset 18 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 khelper 19 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs 20 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns 21 root 20 0 0 0 0 S 0.0 0.0 0:00.04 bdi-default 22 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kintegrityd 23 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd 24 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ata_sff
ഇതും വായിക്കുക : 12 ടോപ്പ് കമാൻഡ് ഉദാഹരണങ്ങൾ
53. കമാൻഡ്: mkfs.ext4
ഈ കമാൻഡ് നിർദ്ദിഷ്ട ഉപകരണത്തിൽ ഒരു പുതിയ ext4 ഫയൽ സിസ്റ്റം സൃഷ്ടിക്കുന്നു, ഈ കമാൻഡിന് ശേഷം തെറ്റായ ഉപകരണം പിന്തുടരുകയാണെങ്കിൽ, മുഴുവൻ ബ്ലോക്കും മായ്uക്കുകയും ഫോർമാറ്റ് ചെയ്യുകയും ചെയ്യും, അതിനാൽ നിങ്ങൾ എന്താണ് ചെയ്യുന്നതെന്ന് മനസിലാക്കുന്നത് വരെ ഈ കമാൻഡ് പ്രവർത്തിപ്പിക്കരുതെന്ന് നിർദ്ദേശിക്കുന്നു.
Mkfs.ext4 /dev/sda1 (sda1 block will be formatted) mkfs.ext4 /dev/sdb1 (sdb1 block will be formatted)
കൂടുതൽ വായിക്കുക: എന്താണ് Ext4, എങ്ങനെ സൃഷ്ടിക്കാം, പരിവർത്തനം ചെയ്യാം
54. കമാൻഡ്: vi/emacs/nano
vi (വിഷ്വൽ), emacs, nano എന്നിവയാണ് ലിനക്സിൽ സാധാരണയായി ഉപയോഗിക്കുന്ന ചില എഡിറ്ററുകൾ. ടെക്uസ്uറ്റ്, കോൺഫിഗറേഷൻ,... ഫയലുകൾ എന്നിവ എഡിറ്റ് ചെയ്യാൻ അവ പലപ്പോഴും ഉപയോഗിക്കാറുണ്ട്. vi, നാനോ എന്നിവയെ ചുറ്റിപ്പറ്റി പ്രവർത്തിക്കാനുള്ള ഒരു ദ്രുത ഗൈഡ് ആണ്, emacs a.
[[email ~]$ touch a.txt (creates a text file a.txt) [[email ~]$ vi a.txt (open a.txt with vi editor)
[ഇൻസേർട്ട് മോഡിൽ പ്രവേശിക്കാൻ 'i' അമർത്തുക, അല്ലെങ്കിൽ നിങ്ങൾക്ക് ഒന്നും ടൈപ്പ്-ഇൻ ചെയ്യാൻ കഴിയില്ല]
echo "Hello" (your text here for the file)
- alt+x (ഇൻസേർട്ട് മോഡിൽ നിന്ന് പുറത്തുകടക്കുക, അവസാന അക്ഷരങ്ങൾക്കിടയിൽ കുറച്ച് ഇടം സൂക്ഷിക്കാൻ ഓർമ്മിക്കുക.
- ctrl+x കമാൻഡ് അല്ലെങ്കിൽ നിങ്ങളുടെ അവസാന വാക്ക് ഇല്ലാതാക്കപ്പെടും).
- :wq! (ഫയൽ സംരക്ഷിക്കുന്നു, നിലവിലെ ടെക്uസ്uറ്റ് ഉപയോഗിച്ച്, ഓർക്കുക ‘!’ എന്നത് അസാധുവാക്കാനാണ്).
[[email ~]$ nano a.txt (open a.txt file to be edited with nano)
edit, with the content, required
ctrl +x (എഡിറ്റർ അടയ്ക്കുന്നതിന്). ഇത് ഔട്ട്പുട്ട് ഇതായി കാണിക്കും:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? Y Yes N No ^C Cancel
അതെ എന്നതിലേക്ക് 'y' ക്ലിക്ക് ചെയ്ത് ഫയലിന്റെ പേര് നൽകുക, നിങ്ങൾ പൂർത്തിയാക്കി.
55. കമാൻഡ്: rsync
Rsync ഫയലുകൾ പകർത്തുന്നു, ഒരു പ്രോഗ്രസ് ബാറിനായി ഒരു -P സ്വിച്ച് ഉണ്ട്. അതിനാൽ നിങ്ങൾ rsync ഇൻസ്റ്റാൾ ചെയ്തിട്ടുണ്ടെങ്കിൽ, നിങ്ങൾക്ക് ഒരു ലളിതമായ അപരനാമം ഉപയോഗിക്കാം.
alias cp='rsync -aP'
ഇപ്പോൾ ടെർമിനലിൽ ഒരു വലിയ ഫയൽ പകർത്താൻ ശ്രമിക്കുക, ഒരു പ്രോഗ്രസ് ബാറിന് സമാനമായി ശേഷിക്കുന്ന ഇനങ്ങളുള്ള ഔട്ട്പുട്ട് കാണുക.
മാത്രമല്ല, ഒരു സിസ്റ്റം അഡ്മിനിസ്ട്രേറ്റർ ചെയ്യേണ്ട ഏറ്റവും പ്രധാനപ്പെട്ടതും വിരസമായതുമായ ജോലിയാണ് ബാക്കപ്പ് സൂക്ഷിക്കുന്നതും പരിപാലിക്കുന്നതും. ടെർമിനലിൽ ബാക്കപ്പ് സൃഷ്uടിക്കുന്നതിനും പരിപാലിക്കുന്നതിനുമുള്ള വളരെ നല്ല ഉപകരണമാണ് Rsync (മറ്റു പലതും നിലവിലുണ്ട്).
[[email ~]$ rsync -zvr IMG_5267\ copy\=33\ copy\=ok.jpg ~/Desktop/ sending incremental file list IMG_5267 copy=33 copy=ok.jpg sent 2883830 bytes received 31 bytes 5767722.00 bytes/sec total size is 2882771 speedup is 1.00
ശ്രദ്ധിക്കുക: കംപ്രഷനായി -z, വെർബോസിന് -v, ആവർത്തനത്തിന് -r.
56. കമാൻഡ്: സൗജന്യം
ഒരു അഡ്uമിനിസ്uട്രേറ്റർ നിർവ്വഹിക്കുന്ന മറ്റേതൊരു ടാസ്uക്കും പോലെ മെമ്മറിയുടെയും ഉറവിടങ്ങളുടെയും ട്രാക്ക് സൂക്ഷിക്കുന്നത് വളരെ പ്രധാനമാണ്, കൂടാതെ 'സ്വതന്ത്ര' കമാൻഡ് ഇവിടെ രക്ഷാപ്രവർത്തനത്തിന് വരുന്നു.
[[email ~]$ free total used free shared buffers cached Mem: 2028240 1788272 239968 0 69468 363716 -/+ buffers/cache: 1355088 673152 Swap: 3905532 157076 3748456
[[email ~]$ free -b total used free shared buffers cached Mem: 2076917760 1838272512 238645248 0 71348224 372670464 -/+ buffers/cache: 1394253824 682663936 Swap: 3999264768 160845824 3838418944
[[email ~]$ free -k total used free shared buffers cached Mem: 2028240 1801484 226756 0 69948 363704 -/+ buffers/cache: 1367832 660408 Swap: 3905532 157076 3748456
[[email ~]$ free -m total used free shared buffers cached Mem: 1980 1762 218 0 68 355 -/+ buffers/cache: 1338 641 Swap: 3813 153 3660
[[email ~]$ free -g total used free shared buffers cached Mem: 1 1 0 0 0 0 -/+ buffers/cache: 1 0 Swap: 3 0 3
[[email ~]$ free -h total used free shared buffers cached Mem: 1.9G 1.7G 208M 0B 68M 355M -/+ buffers/cache: 1.3G 632M Swap: 3.7G 153M 3.6G
[[email ~]$ free -s 3 total used free shared buffers cached Mem: 2028240 1824096 204144 0 70708 364180 -/+ buffers/cache: 1389208 639032 Swap: 3905532 157076 3748456 total used free shared buffers cached Mem: 2028240 1824192 204048 0 70716 364212 -/+ buffers/cache: 1389264 638976 Swap: 3905532 157076 3748456
57. കമാൻഡ്: mysqldump
ശരി, ഈ കമാൻഡിന്റെ പേരിൽ നിന്ന് ഈ കമാൻഡ് എന്താണ് അർത്ഥമാക്കുന്നത് എന്ന് നിങ്ങൾ ഇതുവരെ മനസ്സിലാക്കിയിരിക്കും. mysqldump കമാൻഡുകൾ എല്ലാ അല്ലെങ്കിൽ ഒരു പ്രത്യേക ഡാറ്റാബേസ് ഡാറ്റയും തന്നിരിക്കുന്ന ഫയലിലേക്ക് ഡംപ് ചെയ്യുന്നു (ബാക്കപ്പുകൾ). ഉദാഹരണത്തിന്,
[[email ~]$ mysqldump -u root -p --all-databases > /home/server/Desktop/backupfile.sql
ശ്രദ്ധിക്കുക: mysqldump-ന് mysql പ്രവർത്തിക്കുകയും അംഗീകാരത്തിനായി പാസ്uവേഡ് ശരിയാക്കുകയും വേണം. mysqldump കമാൻഡ് ഉപയോഗിച്ച് ഡാറ്റാബേസ് ബാക്കപ്പിലെ ഉപയോഗപ്രദമായ ചില mysqldump കമാൻഡുകൾ ഞങ്ങൾ കവർ ചെയ്തിട്ടുണ്ട്
58. കമാൻഡ്: mkpasswd
ഊഹിക്കാൻ പ്രയാസമുള്ള, നിർദ്ദിഷ്ട ദൈർഘ്യമുള്ള ക്രമരഹിതമായ ഒരു പാസ്uവേഡ് ഉണ്ടാക്കുക.
[[email ~]$ mkpasswd -l 10 zI4+Ybqfx9
[[email ~]$ mkpasswd -l 20 w0Pr7aqKk&hmbmqdrlmk
കുറിപ്പ്: -l 10 10 പ്രതീകങ്ങളുടെ ക്രമരഹിതമായ പാസ്uവേഡ് സൃഷ്ടിക്കുന്നു, അതേസമയം -l 20 പ്രതീകം 20-ന്റെ പാസ്uവേഡ് സൃഷ്ടിക്കുന്നു, ആവശ്യമുള്ള ഫലം ലഭിക്കുന്നതിന് ഇത് എന്തിനും സജ്ജമാക്കാം. ക്രമരഹിതമായ പാസ്uവേഡുകൾ സൃഷ്ടിക്കുന്നതിന് ഈ കമാൻഡ് വളരെ ഉപയോഗപ്രദവും സ്uക്രിപ്റ്റിംഗ് ഭാഷയിൽ നടപ്പിലാക്കുന്നതുമാണ്. ഈ കമാൻഡ് ഉപയോഗിക്കുന്നതിന് നിങ്ങൾ 'പ്രതീക്ഷിക്കുക' പാക്കേജ് yum അല്ലെങ്കിൽ apt ചെയ്യേണ്ടതുണ്ട്.
yum install expect OR apt-get install expect
59. കമാൻഡ്: പേസ്റ്റ്
ഉപയോഗിച്ച് ലൈനുകളിൽ രണ്ടോ അതിലധികമോ ടെക്സ്റ്റ് ഫയലുകൾ ലയിപ്പിക്കുക. ഉദാഹരണം. ഫയൽ1-ന്റെ ഉള്ളടക്കം ഇതായിരുന്നുവെങ്കിൽ:
1 2 3 and file2 was: a b c d the resulting file3 would be: 1 a 2 b 3 c d
60.കമാൻഡ്: lsof
lsof എന്നാൽ \ലിസ്uറ്റ് ഓപ്പൺ ഫയലുകൾ എന്നതിനർത്ഥം കൂടാതെ നിങ്ങളുടെ സിസ്റ്റം നിലവിൽ തുറന്നിരിക്കുന്ന എല്ലാ ഫയലുകളും പ്രദർശിപ്പിക്കുന്നു. ഏത് പ്രോസസ്സുകളാണ് ഒരു നിശ്ചിത ഫയൽ ഉപയോഗിക്കുന്നതെന്ന് കണ്ടെത്തുന്നതിനോ അല്ലെങ്കിൽ എല്ലാ ഫയലുകളും ഒരൊറ്റ പ്രോസസ്സിനായി പ്രദർശിപ്പിക്കുന്നതിനോ ഇത് വളരെ ഉപയോഗപ്രദമാണ്. ചില ഉപയോഗപ്രദമായ 10 lsof കമാൻഡ് ഉദാഹരണങ്ങൾ, നിങ്ങൾക്ക് വായിക്കാൻ താൽപ്പര്യമുണ്ടാകാം.
[[email ~]$ lsof COMMAND PID TID USER FD TYPE DEVICE SIZE/OFF NODE NAME init 1 root cwd DIR 8,1 4096 2 / init 1 root rtd DIR 8,1 4096 2 / init 1 root txt REG 8,1 227432 395571 /sbin/init init 1 root mem REG 8,1 47080 263023 /lib/i386-linux-gnu/libnss_files-2.17.so init 1 root mem REG 8,1 42672 270178 /lib/i386-linux-gnu/libnss_nis-2.17.so init 1 root mem REG 8,1 87940 270187 /lib/i386-linux-gnu/libnsl-2.17.so init 1 root mem REG 8,1 30560 263021 /lib/i386-linux-gnu/libnss_compat-2.17.so init 1 root mem REG 8,1 124637 270176 /lib/i386-linux-gnu/libpthread-2.17.so init 1 root mem REG 8,1 1770984 266166 /lib/i386-linux-gnu/libc-2.17.so init 1 root mem REG 8,1 30696 262824 /lib/i386-linux-gnu/librt-2.17.so init 1 root mem REG 8,1 34392 262867 /lib/i386-linux-gnu/libjson.so.0.1.0 init 1 root mem REG 8,1 296792 262889 /lib/i386-linux-gnu/libdbus-1.so.3.7.2 init 1 root mem REG 8,1 34168 262840 /lib/i386-linux-gnu/libnih-dbus.so.1.0.0 init 1 root mem REG 8,1 95616 262848 /lib/i386-linux-gnu/libnih.so.1.0.0 init 1 root mem REG 8,1 134376 270186 /lib/i386-linux-gnu/ld-2.17.so init 1 root 0u CHR 1,3 0t0 1035 /dev/null init 1 root 1u CHR 1,3 0t0 1035 /dev/null init 1 root 2u CHR 1,3 0t0 1035 /dev/null init 1 root 3r FIFO 0,8 0t0 1714 pipe init 1 root 4w FIFO 0,8 0t0 1714 pipe init 1 root 5r 0000 0,9 0 6245 anon_inode init 1 root 6r 0000 0,9 0 6245 anon_inode init 1 root 7u unix 0xf5e91f80 0t0 8192 @/com/ubuntu/upstart init 1 root 8w REG 8,1 3916 394 /var/log/upstart/teamviewerd.log.1 (deleted)
ഇത് അവസാനമല്ല, ഒരു സിസ്റ്റം അഡ്uമിനിസ്uട്രേറ്റർ നിങ്ങൾ പ്രവർത്തിക്കുന്ന ഒരു നല്ല ഇന്റർഫേസ് നൽകുന്നതിന് ധാരാളം കാര്യങ്ങൾ ചെയ്യുന്നു. സിസ്റ്റം അഡ്മിനിസ്ട്രേഷൻ യഥാർത്ഥത്തിൽ വളരെ മികച്ച രീതിയിൽ പഠിക്കുന്നതിനും നടപ്പിലാക്കുന്നതിനുമുള്ള ഒരു കലയാണ്. ഒരു ലിനക്uസ് പ്രൊഫഷണൽ നിർബന്ധമായും പഠിക്കേണ്ട മറ്റെല്ലാ കാര്യങ്ങളും നിങ്ങൾക്ക് ലഭ്യമാക്കാൻ ഞങ്ങൾ ശ്രമിക്കും, ലിനക്uസ് അതിന്റെ അടിസ്ഥാനപരമായി തന്നെ, പഠനത്തിന്റെയും പഠനത്തിന്റെയും ഒരു പ്രക്രിയയാണ്. നിങ്ങളുടെ നല്ല വാക്കുകൾ എപ്പോഴും അന്വേഷിക്കപ്പെടുന്നു, അത് നിങ്ങൾക്ക് അറിവുള്ള ഒരു ലേഖനം നൽകുന്നതിന് കൂടുതൽ പരിശ്രമിക്കാൻ ഞങ്ങളെ പ്രോത്സാഹിപ്പിക്കുന്നു. \ഞങ്ങളെ പ്രചരിപ്പിക്കാൻ സഹായിക്കുന്നതിന് ഞങ്ങളെ ലൈക്ക് ചെയ്യുകയും പങ്കിടുകയും ചെയ്യുക.