" ශ්‍රී ලාංකීය අභිමානය " ශ්‍රී ලංකාවේ කොල්ලො කෙල්ලොන්ට 2023 සිරාම බ්ලොග් එක.. Blog Eka.. ப்லொக் எக.. "ALLSRILANKANS BLOG"

This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Showing posts with label Open Source. Show all posts
Showing posts with label Open Source. Show all posts

Monday, April 10, 2017

SLT එක්ක අවුරුදු කමුද?



SLT එක්ක අවුරුදු කමුද? මෙන්න අවුරුදු ක්‍රීඩා එහෙම කරලම ඔයාලට කැමති තරම් ඩේටා වැඩි කරගන්න එන්න අදම SLT එකක් අවුරුදු කන්න .,.,

Share:

Thursday, April 6, 2017

කප්පම් ඉල්ලන මෘදුකාංග – Ransomware


තොරතුරු තාක්ෂණයේ  දියුණුවත්  එක්ක ලෝකයේ  බොහෝ ක්ෂේත්‍ර පරිගණක සහ අන්තර්ජාලය තමන්ගේ වැඩ කටයුතු  සඳහා යොදාගන්න පුරුදු වුණා. අපේ වැඩ පහසු කරන මෘදුකාංග හදන මෘදුකාංග නිර්මාණකරුවන් වගේම අපරාධකරුවනුත් මේ තාක්ෂණික දියුණුව තමන්ගේ මඩිය තර කරගන්න යොදාගැනීම හරහා මෑතකදී  බිහිවුණු ප්‍රවණතාවක් ගැන තමයි අද ලිපියෙන් කතා කරන්නේ.

මෘදුකාංග කොහොමද කප්පම් ඉල්ලන්නේ?

කප්පම් ඉල්ලීම සඳහා භාවිතා කරන මෘදුකාංග විශේෂය හැඳින්වෙන්නේ ransomware කියලයි. බොහෝවිට මේවා නිර්මාණය වෙන්නේ තමන්ගේ හැකියාවන් අපරාධ සඳහා යොදාගන්න පුරුදු වුණ දක්ෂ  ක්‍රමලේඛණ ශිල්පීන් අතින්. ඔබේ පරිගණකය හෝ ස්මාර්ට් දුරකථනය තුළ  ransomware එකක් ස්ථාපනය වූ පසු එම මෘදුකාංගයට පුළුවන් ඔබේ දත්ත ඔබට පාවිච්චි කරන්න බැරි වෙන ආකාරයට ගුප්ත කේතනය (encrypt) කරන්න, නැතිනම් ඔබේ පරිගණකය හෝ දුරකථනය අගුළු දැමීම. ඊළඟට ඔබේ දත්ත නැවත විකේතනය (decrypt) කරන්න හෝ අන්ලොක් කරන්න  නම් ඔබ යම්කිසි මුදලක් අන්තර්ජාලය හරහා ගෙවිය යුතු බවට දැනුම්දීමක් මේ මෘදුකාංග මගින් සිදුවෙනවා.
Ransomware එකක් මගින් කප්පම් ඉල්ලා කෙරෙන දැනුම්දීමක් (www.cureyoursystem.com)

Ransomware වල ඉතිහාසය

Ransomware හිසරදයක් වෙන්න පටන්ගත්තේ 2005දී පමණ නමුත් ransomware වල ඉතිහාසය 80 දශකය දක්වා විහිදෙනවා. 1989 වසරේදී  AIDS Trojan නමින් හැඳින්වුණ ransomware එකක් පරිගණක වලට මුදාහැරුණත් පුද්ගලික පරිගණක ඒ වකවානුව තුළ ඉතා දුලබ වීම නිසා එය  එතරම් අවධානයට ලක් වුණේ නෑ. වසර 2005 පමණ වනවිට නැවත වතාවක් රුසියාව ආශ්‍රිතව මේ මෘදුකාංග දකින්න ලැබෙන්නේ යුක්රේනය, බෙලරුස් සහ කසකස්ථාන් වැනි රුසියාව ආසන්නයේ  රටවල් වල පිරිස් අපහසුතාවයට පත් කරමින්.
2010 පමණ වනවිට මේ ransomware අන්තර්ජාතිකව පරිගණක ආරක්ෂාව සම්බන්ධ තර්ජනයක් හැටියට හඳුනාගැනෙනවා. ගුප්ත කේතන උපක්‍රම භාවිතා කරන පළමු ransomware එක 2013 දී අන්තර්ජාලයට මුදාහැරෙනවා. කාලයත් සමග අද වනවිට ඉතා දියුණු තාක්ෂණික උපක්‍රම මගින් වඩාත් දරුණු ransomware නිපදවන්න වගේම සංවිධානාත්මක මාෆියාවක් විදියට මේ මෘදුකාංග බෙදාහැරින්නත් සයිබර් අපරාධකරුවන් පුරුදු වෙලා තියනවා. නවතම සංඛ්‍යාලේඛන වලට අනුව දිනකට ලොව පුරා පරිගණක 4000ක් පමණ ransomware වල ගොදුරු බවට පත්වෙනවා.
ransomwareවල සීඝ්‍ර වර්ධනය (source : symnatic )

Ransomware වල ප්‍රභේද 2ක් තියනවා

1- Locker Ransomware
මේ වර්ගයේ ransomware වලින්  කරන්නේ ඔබේ පරිගණකය අගුළු දමා නැවත ඔබේ පරිගණකයට පිවිසීමට අවසර ලබාදීම වෙනුවෙන් කප්පම් ඉල්ලන එක. මේ මගින් ඔබේ පරිගණකයේ දත්ත වලට බලපෑමක් නොකෙරෙන නිසා සාපේක්ෂව මේ වර්ගයේ ransomware වලින් සිදුවියහැකි හානිය අඩුයි.
2- Crypto Ransomware
මේ වර්ගයේ ransomware මගින් ඔබේ දත්ත ඔබට පාවිච්චි කරන්න බැරි ආකාරයට ගුප්ත කේතනය (encrypt) කරන නිසා මේ වර්ගයේ එකකින් ඔබේ දත්ත ආරක්ෂා කරගැනීමේ හැකියාවක් නැති තරම්.
ransomware වර්ග (www.symantec.com)

ගුප්ත කේතනය (Encryption) සහ Ransomware

ගුප්ත කේතනය කියන්නේ පරිගණක වල ආරක්ෂාව වැඩි කිරීම සඳහා පාවිච්චි කෙරෙන  තාක්ෂණයක්. අපි පරිගණක ජාලයක් හරහා යවන පණිවුඩ, නැතිනම් පරිගණකයක ගබඩා කරන තොරතුරු වෙනත් කෙනෙකුට කියවන්න බැරි වෙන විදියේ රහස් සංකේත බවට පත්කිරීම තමයි ගුප්ත කේතනය හරහා සිදුවෙන්නේ. මේ විදියට කේතනය කළ තොරතුරු විකේතනය කරන්න නම් ඒ සඳහා සැකසු ඩිජිටල් යතුරක් (digital key) අවශ්‍යයි. ගුප්ත කේතනය කළ තොරතුරු නැවත විකේතනය කරන්න හැකියාව තියෙන්නේ අදාළ යතුර තියන කෙනෙකුට පමණයි.
Crypto Ransomware මගින් කරන්නේ පරිගණකයේ දත්ත ගුප්ත කේතනය කර එම දත්ත විකේතනය කිරීම සඳහා අවශ්‍ය ඩිජිටල් යතුර ලබාදීම වෙනුවෙන් කප්පම් ඉල්ලීමයි. නවීන ගුප්ත කේතන ක්‍රම වලින් කේතනය කරන යතුරක් නැතිව විකේතනය කිරීම කළ නොහැක්කක් හැටියට තමයි සැලකෙන්නේ. උදාහරණක් හැටියට දැනට වෙබ් අඩවි සඳහා පාවිච්චි වෙන AES-128 නමැති ගුප්ත කේතන ක්‍රමය මගින් කේතනය කළ දත්ත යතුරක් නැතිව විකේතනය (bruteforce) කරන්න සුපිරි පරිගණකයකටත් (supercomputer) වසර බිලියන 13ක් පමණ ගතවන බව කියවෙනවා. ඒ නිසා Crypto Ransomware එකක ගොදුරක් වෙන කෙනෙකුට තමන්ගේ දත්ත අහිමි වෙන්න තියන ඉඩකඩ ඉතා ඉහළයි.

Ransomware පැතිරෙන්නේ කොහොමද?

ප්‍රධාන වශයෙන් මේවා පැතිරෙන්නේ ඊමේල් සමඟ එන ඇමුණුම් (attachments) හෝ ලින්ක් හරහා යි. ඔබට නාඳුනන කෙනෙකුගෙන් එන ඊමේල් එකක් සමග තියන ගොනුවක් ඔබ විවෘත කිරීමේදී ඔබේ පරිගණකයට ransomware ඇතුළු වෙන්න ඉඩ තියනවා. ඒ වගේම ඔබ සැරිසරන වෙබ් අඩවි වලත් ransomware තියෙන්න පුළුවන්. ඒ නිසා  ඔබ නිතර පාවිච්චි නොකරන වෙබ් අඩවි වලින් ඩවුන්ලෝඩ් කරන දේවල් ගැන සැලකිලිමත් ඉතා වැදගත්.

ජංගම දුරකථන සඳහා ransomware

වසර 2014 දී ඇන්ඩ්‍රොයිඩ් මෙහෙයුම් පද්ධතිය සඳහා පළමු ransomware එක වාර්තා වීමත්  පරිගණක වලට සීමා නොවී ජංගම දුරකථන වලටත් පැතිරෙන්න ransomware සමත් වෙලා තියනවා. දුරකථන සඳහා වන ransomware බොහොමයක් තියෙන්නේ නිල නොවන app store වල. ඒ වගේම සමහර ransomware ප්‍රති වයිරස මෘදුකාංග විදියට වෙස් මාරු කරගෙන ඉන්න අවස්ථාත් පසුගිය දෙවසර තුල වාර්තා වෙලා තියනවා.
ජංගම දුරකථන වලට එන කප්පම් ඉල්ලීම් (www.welivesecurity.com)

Ransomware වල බලපෑම

Ransomware වලින් වෙන්න පුළුවන් ලොකුම හානිය තමයි තමන්ගේ දත්ත අහිමි වීම. ඔබ වසර ගණනක් තිස්සේ එකතු කරගත් ඡායාරුප, නැතිනම් තමන්ගේ රැකියාවට අදාළ තොරතුරු ගොනු වගේ දේවල් ransomware නිසා ඔබට නැතිවෙන්න පුළුවන්. තනි පුද්ගලයෙකුට නම් සමහරවිට මෙහෙම දෙයක් දරාගන්න පුළුවන් නමුත් ආයතනයක කටයුතු වලට යොදාගන්නා පරිගණකයකට  මේ ඇබැද්දිය සිද්ධ වුනොත් ආයතනයට  විශාල පාඩුවක් වගේම අදාළ සේවකයාගේ කීර්තිනාමයටත් හානි සිදුවෙන්න පුළුවන්. මේ වගේ  සිදුවීම් කිහිපයක් පසුගිය වසරේ අපේ රටෙනුත් වාර්තා වෙලා තියනවා.
ඊළඟ කාරණය තමයි ransomware එක මගින් ඔබේ දත්ත සොරාගෙන තියෙන්න ඇති හැකියාව. ඔබේ පරිගණකයේ ඔබට හොරෙන් වැඩ කරන මෘදුකාංගයකට ඔබේ තොරතුරු ගොනු, ඔබ ටයිප් කරන පාස්වර්ඩ් වැනි දේවල් සොරාගෙන වෙනත් කෙනෙකුට යවන්නත්  පුළුවන්.

Ransomware එකකට අහුවුණොත් මොකද කරන්නේ?

1- හැකි ඉක්මණින් පරිගණක ජාල වලින් ඉවත් වෙන්න

ඔබේ පරිගණකය දැනටමත් ransomware එකකට අහුවෙලා නම්, ඔබේ පරිගණක ජාලයේ වෙනත් පරිගණකයකට ransomware එක ඇතුලත් කරන්න එයට හැකියාව තියෙන්න පුළුවන්. ඒ නිසා හැකි ඉක්මනින් අන්තර්ජාලය, WiFi, LAN හෝ වෙනත් ජාලගත සබඳතා වහාම නවත්වන්න.

2- පොලිසියට කියන්න

මේකෙන් ඔබේ දත්ත නැවත ලබාගන්න තියන හැකියාව අඩු ඉතා නමුත් ඔබේ පරිගණකයේ ආයතනික දත්ත වගේ දේවල් තියන අවස්ථාවකදී පොලිස් තොරතුරු තාක්ෂණ අංශයට දැනුම්දීම ඉදිරි කටයුතු වලට පහසුවක් වේවි. ඒ වගේම ආසාදනයට ලක්වුණු පරිගණකය ඔබේ සේවා ස්ථානයේ එකක් නම වහාම ඔබේ සේවා ස්ථානයේ තොරතුරු තාක්ෂණ අංශයට දැනුම් දෙන්න.

3- Ransomware එක අයින් කරගන්න බලන්න

ඔබේ පරිගණකයට අරක්ගත්ත ransomware එක ගුප්ත කේතන පාවිච්චි නොකරන එකක් නම් ඔබේ දත්ත ටික බේරගන්න හැකියාව තියෙන්න පුළුවන්. ඒ සඳහා පළමුවෙන් ඔබට ransomware එකේ නම හොයාගන්න පුළුවන් නම් වෙනත් පරිගණකයකින් අන්තර්ජාලයේ පොඩ්ඩක් හොයලා බලන්න. ඒ ransomware එකට අදාළ විකේතන මෘදුකාංගයක් තියෙන්න පුළුවන්. එහෙම හොයාගන්න නැතිනම් ඔබේ මෙහෙයුම් පද්ධතියේ තියන Safe Mode වැනි පහසුකමක් මගින් හෝ මෙහෙයුම් පද්ධතිය නැවත ස්ථාපනය කිරීම මගින් ransomware එක ඉවත් කරන්න උත්සාහ කරන්න.

4- Backup එකක් restore කරන්න

ඔබ කලින් ගත්තු backup එකක් ඔබ සතුව තියනවනම් ඒක නැවත ස්ථාපනය කරගන්න. ලඟදි කරපු වැඩ ටික ඔබට අහිමි වුණත් වෙලාවේ හැටියට හොඳම විසඳුම තමයි මේක.

5- ගෙවන්න පෙර  සිතා බලන්න

කරන්න වෙන දෙයක් නැතිම වෙලාවක ඉතුරු වෙන එකම විසඳුම තමයි කප්පම ගෙවන එක. නමුත් මේක එතරම් නුවණට හුරු වැඩක් නෙවෙයි. එහෙම කියන්න හේතු කිහිපයක් තියනවා. කප්පම් ගෙවූ පසුවත් ඔවුන් ඔබේ දත්ත නිදහස් නොකරන්න ඉඩ තියනවා. ඒ වගේම ඔබේ දත්ත ලැබුණු පසුවත් ransomware එක ඔබේ පරිගණකයේ ඉතිරි වෙලා තියනවානම් ඔබ තවමත් අනතුරින් ගැලවී නැහැ. තවත් කාරණයක් තමයි ඔබ කප්පම් ගෙවීමෙන් සිදුවෙන්නේ කප්පම්කරුවන් දිරිමත් කිරීමක්. ඒ නිසා කප්පම් නොගෙවා සිටීමට හැකි සෑම උත්සාහයක්ම ගැනීම ඉතා වැදගත්.

Ransomware වලින් බේරෙන්නේ කොහොමද?

ප්‍රති-වයිරස මෘදුකාංග වලට ransomware හඳුනාගන්න තියන හැකියාව තරමක් අඩු නිසා ඒ  පිළිබඳව අපි සැලකිලිමත් වීම අත්‍යවශ්‍යයි. පරිගණක සම්බන්ධ මේ වගේ පුරුදු ටිකක් ඔබේ ජීවිතයට එකතු කරගැනීම ransomware වගේම තවත් බොහෝ අවදානම් තත්ත්ව වලින් ගැලවීමට උදව් වේවි.
  1. පරිගණකය / දුරකථනය නිතර backup කරන්න.
  2. වටිනා ඡායාරූප, ලිපිගොනු ආදිය Google Drive හෝ DropBox වැනි සේවාවක් තුළ තබන්න.
  3. මෘදුකාංග සහ මෙහෙයුම් පද්ධතිය යාවත්කාලීන කරන්න.
  4. ප්‍රති-වයිරස මෘදුකාංගයක් පාවිච්චි කරන්න.
  5. ඔබ ඩවුන්ලෝඩ් කරන ගොනු අදාළ ප්‍රවර්ගයේමද (file type) යන්න විවෘත කිරීමට පෙර පරීක්ෂා කරන්න. උදාහරණයක් හැටියට ගීතයක mp3 ගොනුවක් වෙනුවට exe හෝ apk ගොනුවක් ඩවුන්ලෝඩ් වුණොත් නිසැකවම එය හානිකර හෝ ඔබට අනවශ්‍ය ගොනුවක්.
  6. නොදන්නා වෙබ් අඩවි වලින් ජංගම දුරකථන යෙදුම් (mobile apps) ඩවුන්ලෝඩ් කිරීමෙන් වළකින්න.
  7. Spam හෝ සැක සහිත ඊමේල් පණිවුඩවල අඩංගු ලින්ක් ක්ලික් කිරීමෙන් වලකින්න.
  8. Ad-blocker මෘදුකාංගයක් පාවිච්චි කරන්න.
අවසාන වශයෙන් තොරතුරු තාක්ෂණ ක්ෂේත්‍රයේ නියැලෙන අයට පමණක් සීමා නොවී පරිගණකයක් හෝ ස්මාර්ට් උපකරණයක් පාවිච්චි කරන සහ අන්තර්ජාලය භාවිතා කරන සියළු දෙනාම පරිගණක ආරක්ෂාව ගැන යම් දැනුමක් ලබා සිටීම තමන්ගේ ආරක්ෂාවටත්, පුද්ගලිකත්වය ආරක්ෂා කරගැනීමටත් විශාල පිටුවහලක් වෙයි. ඒ නිසා මේ දේවල් ඔබේ යහළුවන් එක්කත් බෙදාහදා ගන්නත් අමතක කරන්න එපා.
මුලාශ්‍ර: Heimdal Security, ESET Security, Business Insider
කවරයේ පින්තූරය: stinntech.com
Sources:- roar.tech
Share:

Thursday, December 8, 2016

WhatsApp Will Stop Running On These Smartphones In 2017


The company has updated its official blog post that recommended upgrading to a newer Android, iPhone, or Windows Phone version to continue using WhatsApp.

WhatsApp won’t work on these devices after June 30, 2017:

  1. Android 2.1 and Android 2.2
  2. Nokia S40
  3. Nokia Symbian S60
  4. BlackBerry OS and BlackBerry 10
  5. iPhone 3GS/iOS 6
  6. Windows Phone 7


It looks like WhatsApp is taking these steps as these older platforms hinder the growth of the app by not supporting the newer features.

“While these mobile devices have been an important part of our story, they don’t offer the kind of capabilities we need to expand our app’s features in the future,” the company adds in its blog post.
Share:

Monday, October 24, 2016

Apple Plans To Remove USB Ports From Upcoming MacBooks


After Killing iPhone’s 3.5mm Jack, Apple Plans To Remove USB Ports From Upcoming MacBooks
Share:

Sunday, October 23, 2016

Disable and Enable forced Windows 10 updates using command line



Disable forced Windows 10 updates using command line

Using the Command Line and running three simple commands, you can easily take control of the Windows Update process. To do so, you need to open Command Prompt with administrative permissions. If you see the User Account Control prompt, press the Yes button.

Now, type the following commands one by one, hit enter, and proceed:

net stop wuauserv
It stops the Windows Update service.

net stop bits
This command stops background intelligent transfer service.

net stop dosvc
It stops delivery optimization service.

Enabling Windows 10 updates

Just in case you wish to resume the update process, open Command Prompt with administrative privileges and run the following commands one by one:

net start wuauserc

net start bits

net start dosvc

This will resume the Windows 10 updates on your PC.
Share:

Friday, May 27, 2016

How To Test Your Internet Speed With Fast.com — Simplest Internet Speed Test By Netflix


Fast.com is a simple internet connection speed test tool launched by Netflix. It tells you the real-time download speeds and gives you a link to compare your results with the famous Ookla’s Speedtest.net. Netflix says that it measures your current download speed by performing a series of downloads from Netflix servers.

Are you tired of your ISP’s deception and the slow internet connection speed? Well, you have an option of checking your connection speed and filing a complaint. To check the internet connection speeds, numerous broadband tests are available and they have their own specialties.

While many of you might be using Ookla’s Speedtest from time to time, Netflix is here with the simplest internet connection speed test ever called fast.com. They also give the option to compare your results with Ookla internet connection speed test.

As you visit the newly released service, you see a minimal interface that just measures your internet service provider’s download speed. After a few seconds of the test, the results are right in front of you in huge digits.

Unlike Ookla’s test, fast.com shows no ads and is designed by Netflix to check your download speeds if you are facing any streaming issues with your ISP.

How to take Fast.com internet connection speed test?

As I earlier said, you just need to visit Fast.com and your test automatically starts. If you want to check the internet connection speed once more, you need to hit the reload button and the test starts again.

Fast.com measures your current download speed by performing a series of downloads from Netflix servers. “This consumer speed test is different than our Netflix ISP Speed Index. Fast.com measures your personal Internet connection at any given time,” the Netflix website writes.

Earlier in May, Netflix also introduced a tool to help the users control how much data they use.

Fast.com vs Ookla Speedtest.net results:

I decided to take both Fast.com and Ookla Speedtest and there was a surprising difference between those. While Speedtest.net recorded a download speed of 40-60 Mbps, Fast.com’s result  was stuck around 10 Mbps.


Go ahead, take the both internet connection speed tests, 



Share:

Wednesday, April 27, 2016

ලිනක්ස් එකෙන් වෙලාව වෙලාවක් විදියට කැමති වෙලාවක බලාගමුද දිනෙත් අවුලක්ම නෑ- LINUX TIME / DATE-


හායි යාලුවනේ ඔන්න මම අයෙමත් ආවේ වින්ඩෝස් වලින් ටිකක් ඈතට ගිහින් අපිට නොමිලේම ගන්න පුළුවන්  ලිනක්ස් ගැන පොඩි වැඩ ටිකක් අරගෙන දැක්කනේ ටොපික් එක ලිනක්ස් එකෙන් වෙලාව වෙලාවක් විදියට කැමති වෙලාවක බලාගමුද - LINUX TIME- හි හි එහෙනම් වැඩි කතා ඕනේ නෑ මෙන්න කෝඩ්ස් ටික ලිනක්ස් වල ඉන්න අය පොඩ්ඩක් ට්‍රියි එකක් දාලා බලන්නකෝ. එක එක විදියට වෙලාව බලා ගන්න හොඳේ ...

How To Display The Date And Time

You could probably have guessed the command to display the date and time using the Linux command line. It is quite simply this:

date
By default the output will be something like this:
Wed Apr 20 19:19:21 BST 2016

You can get the date to display any or all of the following elements:

%a - abbreviated day name (i.e. mon, tue, wed)
%A - full day name (i.e. Monday, Tuesday, Wednesday)
%b or %h - abbreviated month name (i.e. jan, feb, mar)
%B - full month name (January, February, March)
%c - locales date and time (full date and time)
%C - short year (i.e 14, 15, 16)
%d - day of month (i.e. 01, 02, 03)
%D - same as M/D/Y (i.e. 04/20/16)
%e - day of month padded (i.e. ' 1', ' 2')
%F - full date, same as yyyy-mm-dd
%H - hour (00, 01, 02, 21, 22, 23)
%I - hour (1,2,3,10,11,12)
%j - day of year (i.e. 243)
%k - hour padded (i.e. '1' becomes ' 1')
%l - hour padded (12 hour clock)
%m - month number (1,2,3)
%M - minute (1,2,3,57,58,59)
%n - new line
%N - nanoseconds
%p - AM or PM
%P - like %p but lowercase (ironically) 
%r - locales 12 hour clock time
%R - 24 hour version of hour and minute
%s - seconds since 1970-01-01 00:00:00
%S - second (01,02,03, 57, 58, 59)
%t - a tab
%T - time same as %H:%M:%S
%u - day of week (1 is Monday, 2 is Tuesday etc)
%U - week number of year (assuming Sunday as first day of the week)
%V - ISO week number with Monday as the first day of the week
%w - day of week (0 is Sunday)
%W - week number of the year with Monday as the first day of the week
%x - locales date representation (12/31/2015)
%X - locales time representation (14:44:44)
%y - last two digits of year
%Y - year
%z - numeric time zone (i.e. -0400)
%:z - numeric time zone as follows (i.e. -04:00)
%::z - numeric time zone as follows (i.e. -04:00:00)
%Z - alphabetic time zone abbreviation (GMT) 
- - a single hyphen prevents zero padding
_ - a single underscore pads with spaces
0 - pads with zeroes
^ - use uppercase if possible
# - use opposite case if possible

That is a huge number of options and I suspect the date command is the one most people try to add something to when they first want to contribute to Linux and compile their first program.

Essentially if you want to display just the time you can use the following:

date +%T
This will output 19:45:00. (i.e. hours, minutes then seconds)

You can also achieve the above by using the following:

date +%H:%M:%S
You can attach the date as well using the above command:

date +%d/%m/%Y%t%H:%M:%S
Basically you can use any combination of the above switches after the plus symbol to output the date as you so wish. If you want to add spaces you can use quotes around the date.

date +'%d/%m/%Y %H:%M:%S'
How To Show The UTC Date

You can view the UTC date for your computer using the following command:

date -u
If you are in the UK you will notice that instead of showing "18:58:20" as the time it will show "17:58:20" as the time.

How To Show The RFC Date

You can view the RFC date for your computer using the following command:

date -r
This displays the date in the following format:

Wed, 20 Apr 2016 19:56:52 +0100
This is useful as it shows that you are an hour ahead GMT.

Some Useful Date Commands

Do you want to know the date next Monday? Try this out:

date -d "next Monday"
At the point of writing this returns "Mon 25 Apr 00:00:00 BST 2016"

The -d basically prints a date in the future.

Using the same command you can find out which day of the week your birthday or Christmas is on.

date -d 12/25/2016
The result is Sun Dec 25. 
Share:

අපේ ලිපි කෙලින්ම Email එකට

Enter your email address:

Delivered by FeedBurner



මුහුණ පොතේ අපි

පැමිණ ගිය අය

අපේ යාලුවෝ