Sponsored Content
Top Forums UNIX for Advanced & Expert Users command to find when Linux OS is installed? Post 302306743 by cfajohnson on Monday 13th of April 2009 04:44:59 PM
Old 04-13-2009
Quote:
Originally Posted by crackthehit007
Anyone knows command to find when Linux OS is installed?

Code:
uname

As in:

Code:
case $(uname) in
     Linux) : some linux command ;;
     FreeBSD) : some FreeBSD command ;;
     *) : ??? ;;
esac

Quote:
Date and time?

Code:
date

Just the date:

Code:
date +%Y-%m-%d

Just the time:

Code:
date +%H:%M:%S

Read the man page for all the formatting options.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Command to find 32/64 bit in Linux

Hi, Can somebody tell me which command will help me find whether the OS is 32 bit or 64 bit. Regards, Giridhara Babu Tadikonda. (3 Replies)
Discussion started by: giribt
3 Replies

2. Shell Programming and Scripting

How to Find JRE installed in linux machine..?

Hi all, Im new to linux... Im in need to write a shell script to check wthr JRE in linux machine... Wtz de best way to find thru BASH?? Plz help me out to solve this issue... Thanks (3 Replies)
Discussion started by: XivaX
3 Replies

3. Shell Programming and Scripting

Issue with Find command on Linux

Hi, I am issuing find command below mentioned ways but it givs different count. I don't understand the behaviour. Could any one have any clue? $ find . -mtime -5 -maxdepth 1 -exec ls -lrt {} \; | wc -l 169 $ find . -mtime -5 -maxdepth 1 | wc -l 47 $ find . -mtime -5 -maxdepth 1 | wc -l... (2 Replies)
Discussion started by: siba.s.nayak
2 Replies

4. UNIX for Dummies Questions & Answers

Command to see what software installed on linux server

I am using red hat linux server. I need to know what softwares installed on that server. What command can i use to get this list? Any help is highly appreciated. (2 Replies)
Discussion started by: govindts
2 Replies

5. Linux

help in find command in linux

I am trying to find pictures which contains a specific word in the file name. For example any .JPG files that contains "lm" at the beginning or at the middle or at the end of the file name. find / -iname "*.jpg" | ...what should go after the pipe? regards, Moaathe (2 Replies)
Discussion started by: kidwai
2 Replies

6. Shell Programming and Scripting

Command to find 32/64 bit in Linux

Hi, Can somebody tell me which command will help me find whether the OS is 32 bit or 64 bit. OS is LInux Thanks (3 Replies)
Discussion started by: aish11
3 Replies

7. Shell Programming and Scripting

How to Find List of MQ and Websphere certificates that are installed on Linux and UNIX servers?

Dear All, I am planning to find the list of certificates(WEBshpere/MQ) on a servers. My certificates are either stored in (.jks) / (.pem)/ (.cer) . But some of the certificates are stored without these file formats. I tried using find command but unless I give the file name its difficult for... (4 Replies)
Discussion started by: sidh_arth85
4 Replies

8. UNIX for Beginners Questions & Answers

Linux find command returns nothing

Under one of my directories on server I have more than 500 files with different type and name. When I run the find command to list the files with 'ABC_DEFGH' in the begining of its name and older than 20 days, nothing is return as result. Though I know there are more than 400 files which their name... (10 Replies)
Discussion started by: Home
10 Replies

9. Shell Programming and Scripting

Linux find command seems to not transmit all the result to the '-exec command'

Hello. From a script, a command for a test is use : find /home/user_install -maxdepth 1 -type f -newer /tmp/000_skel_file_deb ! -newer /tmp/000_skel_file_end -name '.bashrc' -o -name '.profile' -o -name '.gtkrc-2.0' -o -name '.i18n' -o -name '.inputrc' Tha command... (3 Replies)
Discussion started by: jcdole
3 Replies

10. UNIX for Beginners Questions & Answers

Bash find version of an installed application but if none is found set variable to App Not Installed

Hello Forum, I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so: APP=application --version But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies
UNDOCUMENTED(7) 					     Linux Programmer's Manual						   UNDOCUMENTED(7)

NAME
undocumented - No manpage for this program, utility or function. DESCRIPTION
This program, utility or function does not have a useful manpage. Before opening a bug to report this, please check with the Debian Bug Tracking System (BTS) at <http://bugs.debian.org/> if a bug has already been reported. If not, you can submit a wishlist bug if you want. If you are a competent and accurate writer and are willing to spend the time reading the source code and writing good manpages please write a better man page than this one. Please contact the package maintainer and copy man-pages@qa.debian.org in order to avoid several people working on the same manpage. Even if you are not an accurate writer, your input may be helpful. Writing manual pages is quite easy, the format is described in man(7). The most important and time-consuming task is to collect the information to be put in the new manpage. DIAGNOSTICS
It is possible that the man page for the command you specified is installed and that your manual page index caches are out of sync. You should try running mandb(8). Try the following options if you want more information: foo --help, foo -h, foo -? info foo whatis foo, apropos foo dpkg --listfiles foo, dpkg --search foo locate '*foo*' find / -name '*foo*' Additionally, check the directories /usr/share/doc/foo, /usr/lib/foo. The documentation might be in a package starting with the same name as the package the software belongs to, but ending with -doc or -docs. If you still didn't find the information you are looking for you might consider posting a call for help to debian-user@lists.debian.org. SEE ALSO
info(1), whatis(1), apropos(1), dpkg(8), locate(1), find(1), updatedb(1), undocumented(3), man(7), mandb(8), missing(7). Debian GNU/Linux August 24th, 2003 UNDOCUMENTED(7)
All times are GMT -4. The time now is 01:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy