LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-07-2014, 11:43 AM   #1
masummillat
LQ Newbie
 
Registered: Jun 2014
Posts: 3

Rep: Reputation: Disabled
Os system info


how will i get informantion about linux operation system by comand
 
Old 06-07-2014, 11:57 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
The the "uname" and "lsb_release" commands. Also look for files with "release" or "version" in their name in /etc.

For system info look at the /proc/cpuinfo file, also see the "free", "lspci", and "lsusb" commands.

Your question is super-vague, though. What exactly do you want to know?
 
1 members found this post helpful.
Old 06-07-2014, 12:36 PM   #3
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,564
Blog Entries: 2

Rep: Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071
Hi, 'man' can teach you more about those commands so
Code:
man uname
also you could download (or cut\paste) this script https://github.com/KittyKatt/screenF...creenfetch-dev make text file called screenfetch-dev(no suffix\extension like .txt tho it will actually be a shell script due to contents ) put it in /home/someDIRECTORY then run
Code:
./screenfetch-dev
from that directory, here is mine minus the color
Code:
                   :::::::
             :::::::::::::::::::               hack@slac.slac.edu
          :::::::::::::::::::::::::            OS: Slackware 
        ::::::::cllcccccllllllll::::::         Kernel: x86_64 Linux 3.10.17
     :::::::::lc               dc:::::::       Uptime: 1d 23h 35m
    ::::::::cl   clllccllll    oc:::::::::     Packages: 1160
   :::::::::o   lc::::::::co   oc::::::::::    Shell: bash 4.2.45
  ::::::::::o    cccclc:::::clcc::::::::::::   Resolution: 1366x768
  :::::::::::lc        cclccclc:::::::::::::   DE: KDE 4.10.5
 ::::::::::::::lcclcc          lc::::::::::::  WM: KWin
 ::::::::::cclcc:::::lccclc     oc:::::::::::  WM Theme: Oxygen
 ::::::::::o    l::::::::::l    lc:::::::::::  GTK Theme: 
  :::::cll:o     clcllcccll     o:::::::::::   CPU: Intel Core i5 CPU M 460 @ 2.534GHz
  :::::occ:o                  clc:::::::::::   GPU: Mesa DRI Intel(R) Ironlake Mobile 
   ::::ocl:ccslclccclclccclclc:::::::::::::    RAM: 798MB / 3609MB
    :::oclcccccccccccccllllllllllllll:::::    
     ::lcc1lcccccccccccccccccccccccco::::     
       ::::::::::::::::::::::::::::::::       
         ::::::::::::::::::::::::::::         
            ::::::::::::::::::::::
                 ::::::::::::
conky (my current setup in one OS http://www.linuxquestions.org/questi...0/#post5181205-conky-under-the-ⓢ-ascii-art) from your package manager is another fun one and grate if you want it up all the time as a start-up script? P.s: I run conky manually and can kill it or reboot... best wishes and have fun.

Last edited by jamison20000e; 06-07-2014 at 12:43 PM.
 
Old 06-07-2014, 02:17 PM   #4
l33y
Member
 
Registered: Jan 2014
Location: Gulf Coast, USA
Distribution: Xubuntu
Posts: 50
Blog Entries: 1

Rep: Reputation: Disabled
Jamison, that looks like a very cool program. I just downloaded it using the wget command. When I used the wget command, it put a file in my home directory "screenfetch-dev". I was wondering if you could provide the code for the following step you provided:

Quote:
make text file called screenfetch-dev(no suffix\extension like .txt tho it will actually be a shell script due to contents )
When I did
Quote:
type screenfetch-dev
It says that it is an HTML document, UTF-8 Unicode text, with very long lines

Last edited by l33y; 06-07-2014 at 02:22 PM.
 
Old 06-07-2014, 02:40 PM   #5
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,564
Blog Entries: 2

Rep: Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071
If when you open the file with a text editor or the cat command it looks like
Code:
#!/usr/bin/env bash

# screenFetch - a CLI Bash script to show system/theme info in screenshots

# Copyright (c) 2010-2014 Brett Bohnenkamper <kittykatt@kittykatt.us>

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

# Yes, I do realize some of this is horribly ugly coding. Any ideas/suggestions would be
# appreciated by emailing me or by stopping by http://github.com/KittyKatt/screenFetch . You
# could also drop in on my IRC network, SilverIRC, at irc://kittykatt.silverirc.com/me0wz
# to put forth suggestions/ideas. Thank you.
{...snip}
then your done just run that as above from the downloaded directory so
Code:
bash$ ls
Desktop other files and folders listed ;) screenfetch-dev

bash$ ./screenfetch-dev
{...snip}
or in that directory
Code:
bash$ bash screenfetch-dev
'sh screenfetch-dev' doesn't work?

Last edited by jamison20000e; 06-07-2014 at 02:56 PM.
 
Old 06-07-2014, 03:38 PM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,702

Rep: Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270
Nope - there are a lot of bash specific strings in there that are not POSIX compatible.
 
1 members found this post helpful.
Old 06-07-2014, 04:18 PM   #7
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,564
Blog Entries: 2

Rep: Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071
OK, it gives an error
Code:
bash$ sh screenfetch-dev
screenfetch-dev: line 3349: syntax error near unexpected token `>'
screenfetch-dev: line 3349: `                           exec 3> >(stderrOut)'
but as it works other ways I did not concede; thanks.
 
Old 06-08-2014, 05:57 AM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
On the website, click "Raw", to get a plain text version with no line numbers, then copy and paste in any text editor, save as screenfetch-dev, chmod +x it, then run it.
I've put mine in ~/Scripts, and an alias in ~/.bashrc.
P.S.
Also look at lshw, hwinfo, and hardinfo, for system information. Should be available for any distro.
Attached Thumbnails
Click image for larger version

Name:	screenfetch-dev.png
Views:	9
Size:	53.0 KB
ID:	15692  

Last edited by brianL; 06-08-2014 at 06:07 AM.
 
1 members found this post helpful.
Old 06-08-2014, 11:09 AM   #9
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,564
Blog Entries: 2

Rep: Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071
Here are some more in a script a new member is working* with: http://www.linuxquestions.org/questi...0/#post5181675
 
1 members found this post helpful.
Old 06-08-2014, 08:29 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,373
Blog Entries: 16

Rep: Reputation: 3148Reputation: 3148Reputation: 3148Reputation: 3148Reputation: 3148Reputation: 3148Reputation: 3148Reputation: 3148Reputation: 3148Reputation: 3148Reputation: 3148
If you want a GUI interface for system information, there's a nice program called "hardinfo"--it should be in the repos.

Last edited by frankbell; 06-08-2014 at 08:31 PM.
 
1 members found this post helpful.
Old 06-08-2014, 09:26 PM   #11
l33y
Member
 
Registered: Jan 2014
Location: Gulf Coast, USA
Distribution: Xubuntu
Posts: 50
Blog Entries: 1

Rep: Reputation: Disabled
Your advice worked brilliantly, BrianL. Thanks again for the awesome script Jamison. I was curious BrianL, when you said

Quote:
I've put mine in ~/Scripts, and an alias in ~/.bashrc.
Does that make it appear automatically when you log into a terminal?

Last edited by l33y; 06-08-2014 at 09:27 PM.
 
Old 06-09-2014, 02:21 AM   #12
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
Quote:
Originally Posted by l33y View Post
Your advice worked brilliantly, BrianL. Thanks again for the awesome script Jamison. I was curious BrianL, when you said



Does that make it appear automatically when you log into a terminal?
No, only when I run it. Here's the alias:
Code:
alias sfdev='~/Scripts/screenfetch-dev'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL 5 system lost file system info, stuck on GRUB johnToledo Linux - Server 6 01-09-2013 08:06 AM
system memory map info when system boots up pradeepn Linux - Virtualization and Cloud 0 08-23-2011 02:02 AM
best system information software like watermark system info for gnome desktop soumya_r Linux - Software 2 12-25-2010 07:15 AM
getting cpu info, system info thru system calls naveenisback Programming 7 06-11-2010 02:06 PM
How to find out if my system is i386, i486, or i586? Is there a system info command? mlsbraves Linux - General 6 02-17-2009 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration