Changing Time Format Linux Server
I had a problem in changing the Time Format from EDT to GMT
Here is the solution.
[root@unixlinux ~]# date
Fri Mar 28 01:46:40 EDT 2014
[root@unixlinux ~]# ls -l /etc/localtime
lrwxrwxrwx. 1 root root 36 Mar 27 11:36 /etc/localtime -> /usr/share/zoneinfo/America/New_York
[root@unixlinux ~]# cd /etc/
[root@unixlinux etc]# rm localtime
rm: remove symbolic link `localtime'? y
[root@unixlinux etc]# ln -s /usr/share/zoneinfo/GMT /etc/localtime
[root@ip-10-132-73-23 etc]# date
Fri Mar 28 06:17:21 GMT 2014
tar not found archive
I got this error while extracting a tar file into a directory.
[root@unixlinux ~]# tar -xvf mon.tar dir1/
tar: san: Not found in archive
tar: Exiting with failure status due to previous errors
Here I came up with a solution
Use option -C before specifying any Directory
This is for change directory. It worked fine for me.
[root@unixlinux ~]# tar -xvf mon.tar -C dir1/
iostat.txt
sar.txt
[root@unixlinux ~]#
setfacl: Operation not supported Error
While setting ACL's, sometimes you might get this error.
[root@subrat ~]# setfacl -m u:sonu:rwx /var/log/
setfacl: /var/log/: Operation not supported
So, here is the solution.
Make a entry in /etc/fstab with option 'acl', then remount as below
[root@subrat ~]# vim /etc/fstab
/dev/xvdn1 /var/log ext4 defaults,acl 0 0
[root@subrat ~]# mount -o remount,acl /var/log/
[root@subrat ~]# setfacl -m u:sonu:rwx /var/log/
[root@subrat ~]#
It worked fine for me. Hope for you it will.
I had a problem in changing the Time Format from EDT to GMT
Here is the solution.
[root@unixlinux ~]# date
Fri Mar 28 01:46:40 EDT 2014
[root@unixlinux ~]# ls -l /etc/localtime
lrwxrwxrwx. 1 root root 36 Mar 27 11:36 /etc/localtime -> /usr/share/zoneinfo/America/New_York
[root@unixlinux ~]# cd /etc/
[root@unixlinux etc]# rm localtime
rm: remove symbolic link `localtime'? y
[root@unixlinux etc]# ln -s /usr/share/zoneinfo/GMT /etc/localtime
[root@ip-10-132-73-23 etc]# date
Fri Mar 28 06:17:21 GMT 2014
tar not found archive
I got this error while extracting a tar file into a directory.
[root@unixlinux ~]# tar -xvf mon.tar dir1/
tar: san: Not found in archive
tar: Exiting with failure status due to previous errors
Here I came up with a solution
Use option -C before specifying any Directory
This is for change directory. It worked fine for me.
[root@unixlinux ~]# tar -xvf mon.tar -C dir1/
iostat.txt
sar.txt
[root@unixlinux ~]#
setfacl: Operation not supported Error
While setting ACL's, sometimes you might get this error.
[root@subrat ~]# setfacl -m u:sonu:rwx /var/log/
setfacl: /var/log/: Operation not supported
So, here is the solution.
Make a entry in /etc/fstab with option 'acl', then remount as below
[root@subrat ~]# vim /etc/fstab
/dev/xvdn1 /var/log ext4 defaults,acl 0 0
[root@subrat ~]# mount -o remount,acl /var/log/
[root@subrat ~]# setfacl -m u:sonu:rwx /var/log/
[root@subrat ~]#
It worked fine for me. Hope for you it will.