Unix time 1,234,567,890
“At 11:31:30pm UTC on Feb 13, 2009, Unix time will reach 1,234,567,890″.
This will be Friday, February 13th at 1831 and 30 seconds EST. If you want to find out what time it will be in your local time, try this Perl script courtesy of Matias Palomec:
perl -e ‘print scalar localtime(1234567890),”\n”;’
Now, while this is not the UNIX epoch, Alan Cox does assure us that Linux is now working on 64-bit time, and the UNIX epoch ‘roll-over’ would happen about the time that the sun burnt out.”
Read more
Possibly Related Posts:
- Android Development Training Program for Beginner (FREE)
- Samsung Galaxy Tab 2
- Google Tablet ‘iPad’
- Most Expensive Domain Names – Updated
- Power IT Down Day – Green IT
Argument list too long
Have you seen error message: “Argument list too long” on Linux or Unix console before?
Basically this is a shell command line length limitations. The error “Argument list too long error message” occurs which anytime a user feeds too many arguments to a single command. Each command under Linux/UNIX accepts a parameter commonly known as command arguments. Normally it apply to Linux or Unix system commands such as ls *, cp *, rm *, mv * and etc.
Find out current command line length limitations:
# getconf ARG_MAX
Result:
131072
To get a better result, you may type command
# echo $(( $(getconf ARG_MAX) – $(env | wc -c) ))
Result:
129006
Read more
Possibly Related Posts:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key
- WP Contact Form III – You do not have sufficient permissions to access this page Error
How to create full right permission on Samba share
Samba is an Open Source/Free Software suite that has, since 1992, provided file and print services to all manner of SMB/CIFS clients, including the numerous versions of Microsoft Windows operating systems. Samba is freely available under the GNU General Public License.
Samba comes with different types of permissions for share and for some reason you may require creating new files and directory with full right permission 777.
The example show as below will guide you how to configure Samba share drive with 777 full right permission for any new files or folders created in /data/shared(example)?
[SHARED]
comment = SHARED data
path = /data/shared
valid users = user1, user2, planetmy
writeable = yes
create mask = 0777
force create mode = 0777
directory mask = 777
max connections = 10
veto files = .??*/.ssh/.profile/.mailrc
Possibly Related Posts:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key
- WP Contact Form III – You do not have sufficient permissions to access this page Error
Red Hat webcast UNIX to Linux- Rearchitecting for the Future
UNIX to Linux: Rearchitecting for the future.
Time: 2 p.m. EDT
Speaker: Joel Berman, Director Marketing Strategy, Red Hat
Erich Morisse, Marketing Manger, Red Hat
Want to get more consistency and speed from your systems? Learn about migrating to Linux, the cost-effective solution to making your systems more horizontally scalable.
Possibly Related Posts:
- lppasswd: Unable to open passwd file: Permission denied
- Missing /var/log/lastlog
- Telnet service_limit error
- How to Add Date And Time To Your Bash History on SuSE Linux
- RPM Segmentation Fault
Linux LAST Login Admin Details Script
Linux Last searches back through the file /var/log/wtmp (or the file designated by the -f flag) and displays a list of all users logged in (and out) since that file was created. Names of users and tty’s can be given, in which case last will show only those entries matching the arguments. Names of ttys can be abbreviated, thus last 0 is the same as last tty0.
Last searches back through the file /var/log/wtmp (or the file designated by the -f flag) and displays a list of all users logged in (and out) since that file was created. Names of users and tty’s can be given, in which case last will show only those entries matching the arguments. Names of ttys can be abbreviated, thus last 0 is the same as last tty0.
When last catches a SIGINT signal (generated by the interrupt key, usually control-C) or a SIGQUIT signal (generated by the quit key, usually control-\), last will show how far it has searched through the file; in the case of the SIGINT signal last will then terminate.
The pseudo user reboot logs in each time the system is rebooted. Thus last reboot will show a log of all reboots since the log file was created.
Basically I have a 3 request from customer as below:
- display a list of users that have not been login after X days.
- lock the users that have not been login after X days.
- delete a users that have not been login after X days.
First, the script will search for UID > 999 then it can use to display the result, lock the user account and delete the user account which I make a remarks.
The original script can be found on Unix forums which I have make a small modification.
#Script START here
Possibly Related Posts:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- How to Install Webmin on OpenFiler
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key