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
yum-langpacks(8)														  yum-langpacks(8)

NAME
yum-langpacks - Plugin for yum SYNOPSIS
yum [command] [package ...] DESCRIPTION
yum-langpacks is a plugin for yum to install language packs. This plugin allows user various commands. command is one of: * langavailable [language1] [language2] [...] * langinfo [language1] [language2] [...] * langinstall [language1] [language2] [...] * langlist [language1] [language2] [...] * langremove [language1] [language2] [...] langavailable This command allows user to find if language support is available for the given input languages. langinfo This command allows user to check which packages will get installed when the given input language support is installed. langinstall This command allows user to install language packs for the given input languages. langlist This command prints list of the installed languages. langremove This command allows user to remove the installed language packs for a given input languages. EXAMPLES
To check what packages get installed for language codes es_ES, hi_IN and language names Japanese and Portuguese (Brazil). yum langinfo es_ES "Japanese" hi_IN "Portuguese (Brazil)" NOTES
These commands accept language codes or language names or mix of them as a input. SEE ALSO
yum (8) BUGS
Please report any bugs in Red Hat bugzilla, https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora Parag Nemade yum-langpacks(8)
All times are GMT -4. The time now is 08:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy