LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Os system info (https://www.linuxquestions.org/questions/linux-newbie-8/os-system-info-4175507330/)

masummillat 06-07-2014 11:43 AM

Os system info
 
how will i get informantion about linux operation system by comand

btmiller 06-07-2014 11:57 AM

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?

jamison20000e 06-07-2014 12:36 PM

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. :)

l33y 06-07-2014 02:17 PM

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

jamison20000e 06-07-2014 02:40 PM

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?

jpollard 06-07-2014 03:38 PM

Nope - there are a lot of bash specific strings in there that are not POSIX compatible.

jamison20000e 06-07-2014 04:18 PM

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.

brianL 06-08-2014 05:57 AM

1 Attachment(s)
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.

jamison20000e 06-08-2014 11:09 AM

Here are some more in a script a new member is working* with: http://www.linuxquestions.org/questi...0/#post5181675 :)

frankbell 06-08-2014 08:29 PM

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

l33y 06-08-2014 09:26 PM

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?

brianL 06-09-2014 02:21 AM

Quote:

Originally Posted by l33y (Post 5184875)
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'


All times are GMT -5. The time now is 10:35 PM.