Have you been in this situation?
You have finally installed your first linux and have a problem. Now everybody wants to know what you have installed in order to answer your question. But how to get there?
Little tutorial about gathering information on a linux system.
First know the difference between a normal user and "root". Root is the administrator. You are not normally logging on as root but if it is your own computer you may do so at your own risk. Root can do everything on a computer running linux, so commands such as
are a very bad idea! (Would do: rm=remove -r=recursive *=placeholder for "all")
You can determine if logged in as a normal user or root by looking at the prompt in the console on normal linux installs.
The normal user shows the $ sign at the end of the prompt while the root shows #. The names before the @ are normally indicative as well but may not be so obvious as "root".
Some systems and installations support sudo which is an acronmy for "super user do" which temporarily grants a user root rights without the need for a separate login. Open a terminal with the user you work with and type su or sudo depending on distro, followed by the respective password when asked.
Then we need to make sure you know what a console is. A console can either be a window such as the "cmd" window in MS Windows or the full screen when selecting a tty (terminal) using e.g. Ctrl+Alt+F1 to F6. A console is that scary bit of black screen with a blinking cursor. No mouse. No graphics. No clutter but powerful as h..ll.
Information gathering can be as simple as opening system info e.g. in KDE desktop from the systems menu or a bit more work when using the console.
Getting to grips with information gathering e.g. to address the forum:
HELP COMMAND
use the command followed by --help to see all the parameters possible or to see what I am recommending you to do. Scroll down to the section about the "MORE" command if the output overflows. E.g.
LINUX VERSION AND DISTRO
INSTALLED DEVICES ON PCI BUS
NETWORK ADAPTERS AND BASIC INFO
HARD DRIVES - CAUTION using fdisk with other options than -l is dangerous!
USB DEVICES
PROCESSOR INFORMATION
HOW TO GET IT OUTPUT INTO A FILE
When working within the graphical environment you may use the mouse to mark and copy the output so you can put it directly e.g. into the forum editor. But when working on a tty this won't work. So we need a workaround.
PIPING OUTPUT SOMEWHERE
All the above commands should also work with piping the output into a text file. This can be done by using > after the command followed by a filename. Normally using the normal user I would create a directory path in my /home/ directory let's say "/home/user/system-information" into which I can output the information of the above commands. We need a bit more of fiddling later on - but let's create the directory first:
CREATING A DIRECTORY
Either using your graphical file manager create the directory or when logged into a console window do:
(to get to the root of your user directory) You should have a prompt like this:
When you see the $ sign this means you are logged as normal user.
Now we create the directory using:
.
LISTING DIRECTORIES
when using
you should find an entry for "system-information".
THE "MORE" COMMAND
If the output is too long you can always use the more command after e.g. ls with a vertical bar separated by spaces. It would be used like this:
To continue reading the next page use the space bar, to advance one line use Enter or to quit use Ctrl+c.
Now change the user to root or just try how far you get using the normal user with the above commands. Most should just work fine without the root privileges. Let's output some information to a file:
Which writes the output into a text file named cpu-info.txt in the directory we have created before. When logged in as root whe have an additional step to perform because of privileges. When creating a file with root a normal user cannot access it. So we need to change the file permissions.
CHANGING DIRECTORY AND LISTING CONTENTS
As root go to the directory using the cd command for "change directory".
You can go step by step e.g.
then have a look with
and then change again to the users directory using
. Going back one step can be done by
Going back to the root by
. Together with the
command with the parameters
or
these are the most important to navigate in the linux filesystem. You can also access a directory directly from anywhere such as:
You need to understand, that when using the normal user your root is already the /home/user/ while the user "root" can go a couple steps higher on the file systems tree.
CHANGING FILE PERMISSION
I found a nice tutorial about chmod here: http://www.tuxfiles.org/linuxhelp/filepermissions.html For completeness we'll simply change all the files we have created in the directory to be read/write/execute for everybody using numeric mode.
Change into the directory "system-information" and list all files with the list structure command described above
in oder to see permissions at the beginning of each line such as: -rw-r--r--. Then change permissions with
Now list the files again using
and have a look at the permissions again which will show something like: -rwxrwxrwx
Now you can use these text files to copy paste the text into the forum editor using e.g. "Kate" in KDE or the OpenOffice Writer.
Have fun with Linux ;) and a look into the LQ forum
http://www.linuxquestions.org/questi...uestion-71791/
http://www.linuxquestions.org/questi...-forum-103564/
You have finally installed your first linux and have a problem. Now everybody wants to know what you have installed in order to answer your question. But how to get there?
Little tutorial about gathering information on a linux system.
First know the difference between a normal user and "root". Root is the administrator. You are not normally logging on as root but if it is your own computer you may do so at your own risk. Root can do everything on a computer running linux, so commands such as
Code:
rm -r *
You can determine if logged in as a normal user or root by looking at the prompt in the console on normal linux installs.
The normal user shows the $ sign at the end of the prompt while the root shows #. The names before the @ are normally indicative as well but may not be so obvious as "root".
Code:
user@computer1:~$
Code:
root@computer1:~#
Then we need to make sure you know what a console is. A console can either be a window such as the "cmd" window in MS Windows or the full screen when selecting a tty (terminal) using e.g. Ctrl+Alt+F1 to F6. A console is that scary bit of black screen with a blinking cursor. No mouse. No graphics. No clutter but powerful as h..ll.
Information gathering can be as simple as opening system info e.g. in KDE desktop from the systems menu or a bit more work when using the console.
Getting to grips with information gathering e.g. to address the forum:
HELP COMMAND
use the command followed by --help to see all the parameters possible or to see what I am recommending you to do. Scroll down to the section about the "MORE" command if the output overflows. E.g.
Code:
lspci --help
Code:
cat /proc/version
Code:
lspci
Code:
ifconfig -a
Code:
fdisk -l
Code:
lsusb
Code:
cat /proc/cpuinfo
When working within the graphical environment you may use the mouse to mark and copy the output so you can put it directly e.g. into the forum editor. But when working on a tty this won't work. So we need a workaround.
PIPING OUTPUT SOMEWHERE
All the above commands should also work with piping the output into a text file. This can be done by using > after the command followed by a filename. Normally using the normal user I would create a directory path in my /home/ directory let's say "/home/user/system-information" into which I can output the information of the above commands. We need a bit more of fiddling later on - but let's create the directory first:
CREATING A DIRECTORY
Either using your graphical file manager create the directory or when logged into a console window do:
Code:
cd /
Code:
user@computer1:~$
Now we create the directory using:
Code:
mkdir system-information
LISTING DIRECTORIES
when using
Code:
ls -l
THE "MORE" COMMAND
If the output is too long you can always use the more command after e.g. ls with a vertical bar separated by spaces. It would be used like this:
Code:
ls -l | more
Now change the user to root or just try how far you get using the normal user with the above commands. Most should just work fine without the root privileges. Let's output some information to a file:
Code:
cat /proc/cpuinfo > system-information/cpu-info.txt
CHANGING DIRECTORY AND LISTING CONTENTS
As root go to the directory using the cd command for "change directory".
You can go step by step e.g.
Code:
cd /home
Code:
ls
Code:
cd/user
Code:
cd ..
Code:
cd /
Code:
ls
Code:
ls -l
Code:
ls -al
Code:
cd /home/user/system-information
CHANGING FILE PERMISSION
I found a nice tutorial about chmod here: http://www.tuxfiles.org/linuxhelp/filepermissions.html For completeness we'll simply change all the files we have created in the directory to be read/write/execute for everybody using numeric mode.
Change into the directory "system-information" and list all files with the list structure command described above
Code:
ls -al
Code:
chmod 777 *
Code:
ls -al
Now you can use these text files to copy paste the text into the forum editor using e.g. "Kate" in KDE or the OpenOffice Writer.
Have fun with Linux ;) and a look into the LQ forum
http://www.linuxquestions.org/questi...uestion-71791/
http://www.linuxquestions.org/questi...-forum-103564/