Sponsored Content
Full Discussion: Another dumb question but...
Top Forums UNIX for Dummies Questions & Answers Another dumb question but... Post 302276820 by avronius on Wednesday 14th of January 2009 04:40:54 PM
Old 01-14-2009
To avoid ambiguity, if the file (or directory) is older than 6 months (if I recall correctly), it includes the year:

Excerpt from an ls -l that I've run
Code:
bash-3.00# ls -l
total 67
drwxr-xr-x   4 root     root           4 Apr 13  2007 Solaris_Software_Companion
drwxr-xr-x  11 root     root          12 Jan 12 15:39 boot
drwxr-xr-x   6 root     root           8 Nov 27 07:34 config
drwxr-xr-x  76 root     root          86 Nov 21 09:01 flar
drwxr-xr-x   5 root     root          95 Jan 12 15:57 jumpstart
drwx------   2 root     root           2 Jan 24  2007 lost+found
drwxr-xr-x   5 root     root           6 Oct 14 18:17 patches
drwxr-xr-x   2 root     root           5 Nov 13 13:37 scripts
drwxr-xr-x   8 root     other          9 Jun 16  2008 software
drwxr-xr-x   4 root     root          15 Feb 23  2007 sparc_10u2
drwxr-xr-x   4 root     root          16 Jul 30  2007 sparc_10u3
drwxr-xr-x   5 root     root          16 Sep 20  2007 sparc_10u4
dr-xr-xr-x   5 root     sys           17 Mar 24  2008 sparc_10u5
drwxr-xr-x   3 root     other          8 Jan 13 11:17 sparc_8
drwxr-xr-x   5 root     root          12 Jul 19  2007 sparc_9u7
drwxr-xr-x   3 root     root           3 Jan 13 09:01 temp
drwxrwxr-x   5 root     other         61 Jan 13 13:01 tftpboot
drwxr-xr-x   4 root     root           7 Feb 22  2007 x86_10u3
drwxr-xr-x   6 root     root          19 Oct 10 12:50 x86_10u5

I use other modifiers to help me keep the most recent files at the bottom:
Code:
ls -trl
total 67
drwx------   2 root     root           2 Jan 24  2007 lost+found
drwxr-xr-x   4 root     root           7 Feb 22  2007 x86_10u3
drwxr-xr-x   4 root     root          15 Feb 23  2007 sparc_10u2
drwxr-xr-x   4 root     root           4 Apr 13  2007 Solaris_Software_Companion
drwxr-xr-x   5 root     root          12 Jul 19  2007 sparc_9u7
drwxr-xr-x   4 root     root          16 Jul 30  2007 sparc_10u3
drwxr-xr-x   5 root     root          16 Sep 20  2007 sparc_10u4
dr-xr-xr-x   5 root     sys           17 Mar 24  2008 sparc_10u5
drwxr-xr-x   8 root     other          9 Jun 16  2008 software
drwxr-xr-x   6 root     root          19 Oct 10 12:50 x86_10u5
drwxr-xr-x   5 root     root           6 Oct 14 18:17 patches
drwxr-xr-x   2 root     root           5 Nov 13 13:37 scripts
drwxr-xr-x  76 root     root          86 Nov 21 09:01 flar
drwxr-xr-x   6 root     root           8 Nov 27 07:34 config
drwxr-xr-x  11 root     root          12 Jan 12 15:39 boot
drwxr-xr-x   5 root     root          95 Jan 12 15:57 jumpstart
drwxr-xr-x   3 root     root           3 Jan 13 09:01 temp
drwxr-xr-x   3 root     other          8 Jan 13 11:17 sparc_8
drwxrwxr-x   5 root     other         61 Jan 13 13:01 tftpboot

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

dumb question

My problem is as follows: I have to write a korn shell script which will run mutiple java applications one after one. For example, I will execute the java application A first, after it is done I will run application B. My question is how do I do this? How does my korn shell script know that... (1 Reply)
Discussion started by: madhab99
1 Replies

2. UNIX for Dummies Questions & Answers

really dumb question...

ok i decided to go with Mandrake so i went to the site to download it and that took me to a mirror site. ok. so once i get there were can i find the install file(s) that i need? i only see a series of folder and files. the ones that say intall are instructions but i don't see the files themselves.... (3 Replies)
Discussion started by: justchillin
3 Replies

3. UNIX for Dummies Questions & Answers

script dumb question

Hi, i'm dealing with a script and I have one question. If I have these: #!/bin/bash wget http://somesite/file.tar tar xvf file.tar exit I need the line that contains the command tar to wait until file.tar is completly downloaded, but it doesn't and continues with the next line... (6 Replies)
Discussion started by: piltrafa
6 Replies

4. UNIX for Dummies Questions & Answers

Ok really dumb question but...

Does anyone have detailed info on how to download the files. I go to www.freebsd.com and then i dont know what to do. I dont know why i dont know but im drawing a complete blank so is there anyone that can provide a step by step procedure for downloading/installing Linux? :confused: :confused: (3 Replies)
Discussion started by: Corrail
3 Replies

5. AIX

got a dumb question where do i get AIX 5.3 from

Guys, ive been looking about , but obviously not hard enough, Where do i get AIX 5.3 from ? DO i need to purchase it or is it free to download on a single user license ?:confused: Thanks (2 Replies)
Discussion started by: wmccull
2 Replies

6. UNIX for Dummies Questions & Answers

Another dumb question...

Probably a really easy one for you guru's out there...:rolleyes: I need to make sure the reverse address lookup daemon in rarpd, is running. How do I do so? :confused: Did a grep for the process but couldnt find it, also looked in all the normal places, /bin etc... Cheers (1 Reply)
Discussion started by: JayC89
1 Replies

7. UNIX for Dummies Questions & Answers

this is a very dumb question...i know... :(

hi, when we do an "ls -l" on a directory, we get the listing of the contents of that dir... what is the meaning of some numbers...example in ; -rw-r--r-- 1 idr supp 0 Feb 18 19:41 dmesg drwxrwsrwx 2 root sys 96 Dec 27 15:31 test09 drwxr-xr-x 3 bin ... (1 Reply)
Discussion started by: cromohawk
1 Replies

8. UNIX for Dummies Questions & Answers

Dumb find question

All, For some reason I can't figure out why I can't wildcard my find statement to check for anything with a wildcard after. I can before the -name but not after. ie. find . -name *test works but find . -name test* gives me the error: find: paths must precede expression Usage: find ... (1 Reply)
Discussion started by: markdjones82
1 Replies

9. Shell Programming and Scripting

Help with dumb for-loop question

can anyone please suggest what is wrong with this command: for i in ; do cat ~/Downloads/Project/p0s0n15.tcl>>~/Downloads/Project/p0s0n15_$i.tcl; ./setdest -n 15 -p 0 -M 5 -t 100 -x 500 -y 500 >>~/Downloads/Project/p0s0n15_$i.tcl; cat... (3 Replies)
Discussion started by: amithkhandakar
3 Replies

10. UNIX for Dummies Questions & Answers

really dumb MV command question

Hi, Im trying to do move a file like this as mart of my script on Solaris mv /path/to/file/file.txt .. mv: cannot rename /path/to/file/file.txt to ../file.txt: Permission denied. Im just trying to move it up one level using the following command on a bunch of directories: find... (4 Replies)
Discussion started by: ideal2545
4 Replies
CAL(1)								   User Commands							    CAL(1)

NAME
cal - display a calendar SYNOPSIS
cal [options] [[[day] month] year] DESCRIPTION
cal displays a simple calendar. If no arguments are specified, the current month is displayed. OPTIONS
-1, --one Display single month output. (This is the default.) -3, --three Display prev/current/next month output. -s, --sunday Display Sunday as the first day of the week. -m, --monday Display Monday as the first day of the week. -j, --julian Display Julian dates (days one-based, numbered from January 1). -y, --year Display a calendar for the current year. -V, --version Display version information and exit. -h, --help Display help screen and exit. PARAMETERS
A single parameter specifies the year (1 - 9999) to be displayed; note the year must be fully specified: cal 89 will not display a calendar for 1989. Two parameters denote the month (1 - 12) and year. Three parameters denote the day (1-31), month and year, and the day will be highlighted if the calendar is displayed on a terminal. If no parameters are specified, the current month's calendar is displayed. A year starts on Jan 1. The first day of the week is determined by the locale. The Gregorian Reformation is assumed to have occurred in 1752 on the 3rd of September. By this time, most countries had recognized the ref- ormation (although a few did not recognize it until the early 1900's). Ten days following that date were eliminated by the reformation, so the calendar for that month is a bit unusual. HISTORY
A cal command appeared in Version 6 AT&T UNIX. AVAILABILITY
The cal command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. util-linux June 2011 CAL(1)
All times are GMT -4. The time now is 04:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy