basic commands
Hi, I need a quick answer and hope no one minds providing this to my doing some serious reading...
What is the the Linux equivalent to device manager to get a listing of all attached devices...Is there such a thing? Or do devices get listed in different directories according to their types. I.e. usb, ide, pci etc... I would also be grateful for some networking commands such as linux's version of ipconfig netstat netsh The only network command that works with linux and windoz is ping. Many thanks in advance |
Hi,
Not to be smart but you could search LQ or google and find that this has been asked numerous times. You will find several references in my sig below. |
How about lsusb (USB), lspci (PCI), and mount (IDE/SATA/Serial)?
I did a search here at LQ.org for "ipconfig" and found literally hundreds of threads all describing the linux equivalent -- ifconfig Take a look around this site; there are plenty of resources available. |
for easy device info:
dmesg | grep whateveryouarelookingfor also if you just plug a USB device into your machine and hit dmesg it will show you which device it will associate with: (Just examples) /dev/sdb1 2 3 4 etc for HD/Flash Drives /dev/sg1 2 3 4 etc for Input Devices Networking commands: ipconfig -> ifconfig man ifconfig will explain how to work with the command netstat -> netstat :) -weisso |
for hardware: lshw
for Linux applications: man -k <keyword> |
That was great thank you all.
A question regarding the ifconfig command. I run only as root user and while it seems to give a lot more info than in windows I cannot see the gateway address. Link encap:Ethernet HWaddr 00:10:A4:80:3C:7B inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::210:a4ff:fe80:3c7b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:46057 errors:0 dropped:0 overruns:0 frame:0 TX packets:45096 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:38308925 (36.5 MiB) TX bytes:3037352 (2.8 MiB) Interrupt:11 Base address:0x1000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:64 errors:0 dropped:0 overruns:0 frame:0 TX packets:64 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4940 (4.8 KiB) TX bytes:4940 (4.8 KiB) Regarding device manager, as suspected in Linux there deos't seem one specific locatiion where all device are listed. I.e. different location for different device types...? |
Quote:
Start loging in as normal user, and learn to use the su and sudo commands to gain temporary root authority to make configurations, install software, etc, where root authority is needed. |
Thanks for that. But what about the earlier question? I.e. why i dont see the gateway address using ifconfig?
|
lshw command
Quote:
even as root user.. |
How about the route command?
That works on my distros.
|
Hi,
Quote:
As I stated before my sig has several command line guides. The first to links are for ways to assist you in posting then the next two are good command and system guides. |
Hi,
Quote:
Quote:
|
Quote:
When I got it installed on my desktop, however, I almost instantly stopped using root for everything, and started picking up some security practices. |
All times are GMT -5. The time now is 04:55 AM. |