Showing posts with label Linux Commands. Show all posts
Showing posts with label Linux Commands. Show all posts
Monday, December 2, 2013
Wednesday, September 11, 2013
How to extract RAR and ZIP files in Kali Linux
Kali မွာ zip, rar ဖုိင္ေတြကုိျဖည္နည္းပါ။ Windows မွာလုိ ကြ်န္ေတာ္တုိ႔ Zip file ေတြကုိ Kali မွာ တစ္ခါတည္းဖြင့္လုိ႔မရပါဘူး။ WinRar အတြက္ ဆုိပုိဆုိးမွာေပါ့။ သူ႕အတြက္ သီးသန္႔ Tool ေတြရွိေကာင္းရွိႏုိင္ပါတယ္။ ဒါေပမယ့္ ကြ်န္ေတာ္တုိ႔ Terminal ကေနပဲ command နဲ႔ zip file ေတြကုိ
ျဖည္ရေအာင္ဗ်ာ။ ကဲ အရင္ဆုံး ကြ်န္ေတာ္ကေတာ့ နမူဖုိင္ႏွစ္ခုကုိ Kali Desktop ေပၚမွာထားလုိက္မယ္။ wordpress_scanner.zip နဲ႕wordpress_scanner.rar ဆုိတဲ့ဖုိင္ႏွစ္ခုပါ။ အရင္ဆုံး zip file ကုိျဖည္မယ္ဗ်ာ။
ထုံးစံအတုိင္း Desktop Directory ကုိ cd Desktop နဲ႔သြားမယ္။ ျပီးရင္ ls နဲ႔ file ေတြကုိ ေဖာ္ၾကည့္မယ္။ ေတြ႕ျပီဆုိရင္ unzip wordpress_scanner.zip ဆုိတဲ့ command နဲ႔ျဖည္လုိက္ပါ။ အဆင္ေျပသြားပါျပီ။ ပုံေတြကုိတစ္ခ်က္ၾကည့္လုိက္ရင္ သေဘာေပါက္သြားမွာပါ။
ျဖည္ရေအာင္ဗ်ာ။ ကဲ အရင္ဆုံး ကြ်န္ေတာ္ကေတာ့ နမူဖုိင္ႏွစ္ခုကုိ Kali Desktop ေပၚမွာထားလုိက္မယ္။ wordpress_scanner.zip နဲ႕wordpress_scanner.rar ဆုိတဲ့ဖုိင္ႏွစ္ခုပါ။ အရင္ဆုံး zip file ကုိျဖည္မယ္ဗ်ာ။
ထုံးစံအတုိင္း Desktop Directory ကုိ cd Desktop နဲ႔သြားမယ္။ ျပီးရင္ ls နဲ႔ file ေတြကုိ ေဖာ္ၾကည့္မယ္။ ေတြ႕ျပီဆုိရင္ unzip wordpress_scanner.zip ဆုိတဲ့ command နဲ႔ျဖည္လုိက္ပါ။ အဆင္ေျပသြားပါျပီ။ ပုံေတြကုိတစ္ခ်က္ၾကည့္လုိက္ရင္ သေဘာေပါက္သြားမွာပါ။
rar file အတြက္ကေတာ့ Terminal ကေန unrar ဆုိျပီးေခၚလုိက္ပါ။ သူ႕ရဲ႕ အသုံးျပဳပုံ usage ကုိျပေပးပါလိမ့္မယ္။ အဲဒီထဲကမွ unrar e yourfilenane.rar ဆုိတဲ့ command ကုိပဲသုံးမယ္ဗ်ာ။ e ကေတာ့ လက္ရွိ Directory ထဲမွာပဲဖုိင္ကုိ extract လုပ္မယ္ေပါ့။ ဒီေတာ့ ထုံးစံအတုိင္း cd Desktop, ls, နဲ႔သြားမယ္။ rar file ကုိေတြ႕ျပီဆုိတာနဲ႕ unrar e wordpress_scanner.rar ဆုိျပီးရုိက္လုိက္မယ္။ ဒါဆုိအဆင္ေျပသြားပါျပီ။ cd wordpress_scanner နဲ႔ သြားၾကည့္ပါ။ အထဲက ျဖည္ထားတဲ့ဖုိင္ေတြကုိ ျမင္ရပါျပီ။ ျပီးရင္ေတာ့ သက္ဆုိင္ရာ command ေတြနဲ႕ ခရီးေရွ႕ဆက္လုိ႔ရပါျပီ။
ref: http://www.soesoediary.org/2013/09/how-to-extract-rar-and-zip-files-in.html
Friday, June 7, 2013
Easy Android Command
ကြ်န္ေတာ္ထဲ ရွိတာေလးကို ျပန္ရွယ္ေပးလိုုက္ပါတယ္။ သံုးရတာလဲလြယ္ပါတယ္ဗ် ။ fastboot ကိုသြားခ်င္လား ။ recovery mode ကိုသြားခ်င္လား ။ samsung devices download mode ကို သြားခ်င္လား။ adb devices ဆိုျပီး devices သိမသိ စမ္းခ်င္လား ။ ေရြးသြားလိုက္ရံုပါဘဲခင္ဗ်ာ။
ဟီးးးးး ေနာက္ဆံုးေျပာခ်င္တာကေတာ့ ဒါပါဘဲခင္ဗ်ာ ။ ေဒါင္းက်ပါဦး ဗ်။
>>>>>>Download Here<<<<<<
passwd - rainbow
စက္ရုပ္သံုးရင္ ေပ်ာ္ရႊင္ပါေစခင္ဗ်ာ။
Sunday, May 19, 2013
"net" Commands of Linux
Net commands of Linux is useful commands that will help to check the network of ourself and some other services to observe the other networks. Here the List of net commands of Linux,
net rpc Run functions using RPC transport
net rap Run functions using RAP transport
net ads Run functions using ADS transport
net file Functions on remote opened files
net share Functions on shares
net session Manage sessions
net server List servers in workgroup
net domain List domains/workgroups on network
net printq Modify printer queue
net user Manage users
net group Manage groups
net groupmap Manage group mappings
net sam Functions on the SAM database
net validate Validate username and password
net groupmember Modify group memberships
net admin Execute remote command on a remote OS/2 server
net service List/modify running services
net password Change user password on target server
net changetrustpw Change the trust password
net changesecretpw Change the secret password
net setauthuser Set the winbind auth user
net getauthuser Get the winbind auth user settings
net time Show/set time
net lookup Look up host names/IP addresses
net g_lock Manipulate the global lock table
net join Join a domain/AD
net dom Join/unjoin (remote) machines to/from a domain/AD
net cache Operate on the cache tdb file
net getlocalsid Get the SID for the local domain
net setlocalsid Set the SID for the local domain
net setdomainsid Set domain SID on member servers
net getdomainsid Get domain SID on member servers
net maxrid Display the maximum RID currently used
net idmap IDmap functions
net status Display server status
net usershare Manage user-modifiable shares
net usersidlist Display list of all users with SID
net conf Manage Samba registry based configuration
net registry Manage the Samba registry
net eventlog Process Win32 *.evt eventlog files
net printing Process tdb printer files
net serverid Manage the serverid tdb
net rpc Run functions using RPC transport
net rap Run functions using RAP transport
net ads Run functions using ADS transport
net file Functions on remote opened files
net share Functions on shares
net session Manage sessions
net server List servers in workgroup
net domain List domains/workgroups on network
net printq Modify printer queue
net user Manage users
net group Manage groups
net groupmap Manage group mappings
net sam Functions on the SAM database
net validate Validate username and password
net groupmember Modify group memberships
net admin Execute remote command on a remote OS/2 server
net service List/modify running services
net password Change user password on target server
net changetrustpw Change the trust password
net changesecretpw Change the secret password
net setauthuser Set the winbind auth user
net getauthuser Get the winbind auth user settings
net time Show/set time
net lookup Look up host names/IP addresses
net g_lock Manipulate the global lock table
net join Join a domain/AD
net dom Join/unjoin (remote) machines to/from a domain/AD
net cache Operate on the cache tdb file
net getlocalsid Get the SID for the local domain
net setlocalsid Set the SID for the local domain
net setdomainsid Set domain SID on member servers
net getdomainsid Get domain SID on member servers
net maxrid Display the maximum RID currently used
net idmap IDmap functions
net status Display server status
net usershare Manage user-modifiable shares
net usersidlist Display list of all users with SID
net conf Manage Samba registry based configuration
net registry Manage the Samba registry
net eventlog Process Win32 *.evt eventlog files
net printing Process tdb printer files
net serverid Manage the serverid tdb
Monday, May 6, 2013
[MUST] Essential Shell CMD in 5 mins
ဒီ cmd ေလးေတြေလာက္ေတာ့ သိကိုသိထားရပါမယ္. linux based sys: မွာ အလုပ္လုပ္ေနသေရြ ့ေတာ့ ဒါေလးမွ မသိရင္ rooting ဆိုတာမစဥ္းစားပါနဲ ့ေတာ့ =) BT သမားေတြကေတာ့ သိပါတယ္. ခုပို ့စ္က noobs freiendly အတြက္ရည္ရြယ္တာပါ.
gui overwhelm shell မွာပဲျဖစ္ျဖစ္ | terminal cgi shell မွာပဲျဖစ္ျဖစ္ ခုေအာက္က ၅ မိနစ္စာေလးျကည့္ထားရင္ shell သံုးရတာ ပိုေပ်ာ္ဖို ့ေကာင္းလာမွာပါ. :)
== [ For Linux Based ] ==
-v <or> –verbose – verbose mode // verbose mode က processing လုပ္ေနတာေတြကိုျပပါတယ္.
cd // directory ေတြကူးေျပာင္းသြားလာဖို ့
cd .. // အဲ့အစက္ကေလးနွစက္ကို cd ေနာက္မွာ space ျခားပီး enter လိုက္ရင္ ဥပမာ မိမိ ေရာက္ေနတဲ့ directory ေနရာ /home/public_htm/ ဆိုရင္ /home/ ေနရာေရာက္သြားပါလိမ့္မယ္.
cd foldername // foldername ေနရာမွာ specific path or မိမိေရာက္ေနတဲ့ေနရာေအာက္က directory name ရိုက္ျပီး folder ေတြဆီကို သြားတာပါ.
ls // list of folder content
ls -l // ဒါဆိုရင္ format including owners, permissions, size, and date modified ေတြျပပါတယ္.
ls -a // ဒါဆိုရင္ hidden files ေကာ normal ဖိုင္ေတြပါျပပါတယ္
ls -al // ဒါဆိုရင္ hidden file ေတြေကာ ခုနက format ေတြပါျပပါတယ္.
ls -h // file size ေတြျပတာပါ (K,M,Gb) instead of bytes
တကယ္လို့ မိမိေရာက္ေနတဲ့ေနရာက /home/dongoth/Desktop/ မွာ ျကည့္ခ်င္တာက dongoth directory ေအာက္ကဖိုင္ေတြကို ဒါဆိုရင္ ဒီလိုေလးရိုက္ျပီးျကည့္နိုင္ပါတယ္. ls ../
cp –> copy file
cp dongoth.txt /home/dongoth/Desktop ဆို မိမိဖိုင္ကို Desktop ေအာက္မွာ ပြားေပးပါလိမ့္မယ္
cp -r folder /path/to/folder // Copies recursively the contents of the folder to another folder.
cp *.extension /home/dongoth/Desktop ဒါက file extension support ထားတဲ့ဖိုင္ေတြအကုန္ကို Desktop ေအာက္မွာပြားေပးတာပါ. ဥပမာ cp *.doc /home/dongoth/Desktop ဆို .doc ဖိုင္ေတြအကုန္ Desktop ေအာက္မွာပြားလိုက္တာပါ.
mv –> move file
ခုနက cp နဲ ့သံုးပံုတူပါတယ္. ကြာတာက move ဆိုေတာ့ contents ေတြေျပာင္းေရြ ့ျပီးေရာက္သြားပါမယ္.
rm –> remove file
rm file // specific ဖိုင္ကိုဖ်က္တာပါ
rm -r folder // ဖိုဒါကိုဖ်က္ဖို ့ပါ.
rm -rf folder // forcefully ဖ်က္တဲ့သေဘာပါ yes no မေမးေတာ့ပါဖူး အဲ့ cmd က ေသခ်ာမွသံုးပါ. ဒီေကာင္က ေလွ်ာ့ရွိတယ္
nano –> full cmd line text editor
owner permission ပဲေပးထားတဲ့ဖိုင္တစ္ခုကို edit လုပ္မယ္ဆိုရင္ေတာ့ sudo nano ဆိုျပီး sudo အေရွ့က prefix ထားရပါမယ္.
nano newfile.whatever // new file တစ္ခု create လိုက္တာပါ
nano existing_file // nano နဲ ့စ ျပင္ဖို့ပါ.
nano နဲ ့ဖြင့္ကို ဖြင့္လိုက္ရင္
စိတ္ျကိုက္ edit လုပ္ျပီးရင္ save လုပ္ဖို ့ ctrl+o ကိုသံုးပါမယ္. ျပီးရင္ sys က name change မလားေမးပါလိမ့္မယ္ & then press enter.
nano ကေန ထြက္ဖို ့ ctrl+x နဲ ့ထြက္ပါမယ္.
mkdir –> create directory
mkdir dongoth // directory တစ္ခု dongoth အမည္နဲ ့ create လိုက္တာပါ
mkdir -p /path/to/folder/name // မိမိမွာရွိတာက /home/dongoth/Desktop ပဲ မိမိ create ခ်င္တာက /home/dongoth/Desktop/newfolder/2ndfolder ဆို -p ခံေပးရပါမယ္. ဒါမွ newfolder ေကာ 2ndfolder ပါ create လုပ္ေပးသြားပါလိမ့္မယ္.
ps –> list processes
ps aux List all processes in detail running on the system, including user, Process ID (PID), and name of process. Using this, one can view their process list and if necessary, kill unnecessary or stalled processes.
kill / killall / xkill -> Kill offending processes.
kill / killall / xkill -> Kill offending processes.
kill PID PID is a number referencing the offending process. One should obtain the PID from a command like ps aux. If a process refuses to die, one can alternatively specify kill -9 PID which should terminate the process by any means, even uncleanly or if it will mess up the system.
killall program Killall kills *by name* all instances of said program. If there are for example 3 firefox sessions open, killall firefox will do just that; kill all firefox sessions. kill would simply take the specified PID of the offending firefox process you wish to kill, and kill that one only. ( eg killall openvpn // openvpn တစ္မ်ိ ုးထဲ ပိတ္လိုက္တာပါ)
xkill is a GUI way to click and kill windows. Typing in xkill should present a skull-and-crossbones icon, and the next window clicked on will be killed.
Pipes -> The most useful thing you will learn in *NIX. Redirecting output of a program to anothers input. // ဒါကိုေတာ့ ref: ရွာဖတ္ေစခ်င္ပါတယ္.
> and >> redirectors -> Send output to a file instead of the terminal.
> is used to *overwrite* currently existing files contents and replace with the output from the new command.
>> is used to *append* information to currently existing files. This is useful for logging.
Example: ps aux > processes.log Sends the output of ps aux to the file processes.log for viewing the command output in a text editor and overwrites the current contents of the file.
tee -> Send output to both a file and the terminal
tee is used in conjunction with a ‘ | ‘ in order to take the command output and send it elsewhere. This is useful if there are errors which fly by the screen before you can read them, this way whatever goes on the screen is also captured to a file.
Example: dmesg | tee boot.txt would run the command dmesg which shows the initial boot info, and the ‘ | ‘ sends the output of dmesg to tee, which then does its job by sending it to the terminal and to the log file boot.txt.
execute လုပ္တဲ့ cmds
./file
python /home/dongoth/Desktop/ayuu.py
root priv: နဲ ့ဆို python ေရွ့မွာ sudo ထည့္ေပးလိုက္ယံုပါပဲ
Need to run a GUI program with root rights from the terminal? Prefix it with gksudo or gksu and not sudo. Using sudo to launch GUI applications is a bad habit and should be avoided.
Do not, do *not* use sudo simply because something receives “Operation not permitted.” Keep in mind what you are doing as you can absolutely *destroy* systems by running commands in the wrong place with root rights. This point cannot be emphasized enough. Make sure your files come from reputable sources
directory ေတြေလွ်ာက္သြားျပီး မိမိ path မသိေတာ့ရင္ pwd ဆိုျပီး path ကိုျပန္ျကည့္နိုင္ပါတယ္.
disk space check ဖို ့ဆို df -h
executable ျဖစ္နိုင္ေအာင္ file ကို ဒီလိုေလး chmod ေပးနိုင္ပါတယ္. chmod +x filename
history လို ့ရိုက္ျပီး cmd history ေတြျပ္န္ျကည့္လို ့ရပါတယ္. histroy info: ဖ်က္ခ်က္ရင္ history -c
credit : n1trogen
Subscribe to:
Posts (Atom)










