Keywords (click to browse): login login-status last-command tty terminal log date time shell sh bash linux gnu unix script programming command-line
#!/bin/sh
echo -n "Current date and time : "
date
echo -n "Number of logged-in users : "
echo $(last | grep -c "still logged in")
echo -n "Terminal name : "
tty
echo -n "Last login date and time in this terminal:"
echo "$(last $(tty) -F)" | awk '{ print $3 " " $4 " " $5 " " $7 " " $6 }'
Keywords (click to browse): login login-status last-command tty terminal log date time shell sh bash linux gnu unix script programming command-line
ഉബുണ്ടു സോഫ്റ്റ്വെയര് സെന്ററിലെ ഗെയിമുകളിലൂടെ കണ്ണോടിക്കുമ്പോഴാണ് ഫ്രീഡൂം (Freedoom) എന്ന പേര് ശ്രദ്ധയില്പ്പെട്ടത്. സ്ക്രീന്…
Usually we use mouse with our right hand. The pointing finger is for the left button, and the middle finger is for the right one…
ഏറെ നേരം കംപ്യൂട്ടറുപയോഗിക്കുന്നവര്ക്കെല്ലാം കണ്ണിന് ബുദ്ധിമുട്ട് അനുഭവപ്പെടാറുണ്ട്. ചെറിയ അസ്വസ്ഥത മുതല് കംപ്യൂട്ടര് വിഷന് …
ഫെയ്സ്ബുക്കില്നിന്നും ഗൂഗിളില്നിന്നുമെല്ലാമുള്ള സ്ക്രിപ്റ്റുകള് ഇന്ന് ഇന്റര്നെറ്റിലെ വലിയ പങ്ക് സൈറ്റുകളിലും ഉള്പ്പെട്ടിട്ട…
എല്ലാ വര്ഷവും ജൂലായ് മാസമാണല്ലോ ഇന്കം ടാക്സ് റിട്ടേണ് ഫയല് ചെയ്യാറുള്ളത്. അതിനുമുമ്പുതന്നെ ഓര്മപ്പെടുത്തലുമായി ആദായനികുതി വ…
ഈയിടെ പുറത്തിറങ്ങിയ ജംഗിള് ബുക്ക് കാണാത്തവരുണ്ടാവില്ല. നല്ല കഥയ്ക്കും സവിധാനത്തിനും പുറമെ ജംഗിള് ബുക്കിനെ വലിയൊരു സംഭവമാക്കി മ…
You must be familiar with Wikipedia, the Online Free Encyclopedia (en.wikipedia.org). Search for anything, and there appears a…
വൈറസ്സുകളില്ല എന്നതാണ് പലപ്പോഴും ഗ്നു/ലിനക്സിനെ ആകര്ഷകമാക്കുന്നത്. വൈറസ്സുകളുടെ കളിസ്ഥലമായ വിന്ഡോസ് കാലക്രമേണ പതുക്കെയാവുകയും …