02-07-2002
ls -l should give you the file permissions, the date/time file was created. Do a man on 'ls'
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok what is BSD exactly? I know its a type of open source but what is it exactly? (1 Reply)
Discussion started by: Corrail
1 Replies
2. Shell Programming and Scripting
Is it possible to establish an IF statement inside a case statement in a shell file ?
thx (2 Replies)
Discussion started by: TARFU
2 Replies
3. UNIX for Dummies Questions & Answers
Okay, this probably sounds dumb for anyone who knows the answer, but I'm completely lost. I have to use the head command to search a directory AND all of its subdirectories to display the first line of all .txt files. I know how to do this: head -1 ~/UnixCourse/*.txt, but that does not search the... (4 Replies)
Discussion started by: jbud
4 Replies
4. Programming
Hello. I'm a complete newbie to C programming. I have a C program that wasn't written by me where I need to write some wrappers around it to automate and make it easier for a client to use. The problem is that the program accepts standard input to control the program... I'm hoping to find a simple... (6 Replies)
Discussion started by: Xeed
6 Replies
5. Shell Programming and Scripting
hi, sorry for asking what I am sure is a really easy question, I am wanting to cut the users real name from the output of 'finger'.
$ cut -f2-3 filename
is in my script but it only seems to cut the first line.
I need to cut the 2nd and 3rd word from each line and store them in variables... (1 Reply)
Discussion started by: rorey_breaker
1 Replies
6. Shell Programming and Scripting
Hi ! All
This is very simple question....
How to write a 'cp' command interative.
Example :
cp /wlsuite/om/cm/Tools/deploy_scripts/*.xml ${INF_ROOT}/tmp | echo "" || echo " Pls investigate ..."
My intent was
> to copy the files.
> CP fails... then let know the user.
pls... (2 Replies)
Discussion started by: dashok.83
2 Replies
7. UNIX for Dummies Questions & Answers
I had a script in solaris wich i read data, for example:
Number 1: _
and the cursor use to be in '_' place because in the code of the script i write:
echo "Number 1:\c"
but i copy the script to a linux and the cursor 'jump' to the begining of the next line like:
Number 1:... (2 Replies)
Discussion started by: lestat_ecuador
2 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I am new to Unix , I have entered 'cd w' in command prompt and pressed tab key , A tab space is generated instead of listing the folders or files that starts with 'W' . What should i do to get it working:confused:
Thanks,
Deepak (2 Replies)
Discussion started by: Deepakkumard
2 Replies
9. Red Hat
Cheers!
In /etc/syslog.conf, if an error type is not specified, is it logged anywhere (most preferable is it logged to /var/log/messages) or not?
To be more precise I am interested in error and critical level messages. At default these errors are not specified in syslog.conf, and I need to... (6 Replies)
Discussion started by: dr1zzt3r
6 Replies
10. Linux
Simple question: i read mail n°4,how to return to list of messages? (2 Replies)
Discussion started by: Linusolaradm1
2 Replies
STIME(2) Linux Programmer's Manual STIME(2)
NAME
stime - set time
SYNOPSIS
#include <time.h>
int stime(time_t *t);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
stime(): _SVID_SOURCE
DESCRIPTION
stime() sets the system's idea of the time and date. The time, pointed to by t, is measured in seconds since the Epoch, 1970-01-01
00:00:00 +0000 (UTC). stime() may only be executed by the superuser.
RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
ERRORS
EFAULT Error in getting information from user space.
EPERM The calling process has insufficient privilege. Under Linux the CAP_SYS_TIME privilege is required.
CONFORMING TO
SVr4.
SEE ALSO
date(1), settimeofday(2), capabilities(7)
COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2010-02-25 STIME(2)