Advertisement
rokytnji

Commands part2

Nov 4th, 2013
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. #####More Commands in case I missed them########
  2. #####run as sudo or root in terminal to get no internet info#######
  3.  
  4. echo uname: && uname -a -m -p && echo lspci: && lspci -knn && echo lsusb: && lsusb && echo lsusb -t: && lsusb -t && echo lsmod: && lsmod && echo ifconfig: && ifconfig && echo ifconfig -a: && ifconfig -a && echo iwconfig: && iwconfig && echo resolv.conf: && cat /etc/resolv.conf && echo route: && route -n && echo ip link show: && ip link show && dmesg | grep firmware: && dmesg | grep firmware
  5.  
  6. #######lshw and hwinfo must be installed before running below commands#######
  7.  
  8. lshw -C network
  9.  
  10. su -c "hwinfo --wlan"
  11.  
  12. su -c "hwinfo --netcard"
  13.  
  14. ######wireless#####
  15. readlink /sys/class/net/wlan0/device/driver/module
  16.  
  17. lspci -nnk | grep -i net -A2
  18. ######wired#########
  19. dmesg|grep eth0
  20.  
  21. readlink /sys/class/net/eth0/device/driver/module
  22.  
  23. #######question######
  24. whereis ifconfig
  25. ifconfig: /sbin/ifconfig /usr/man/man8/ifconfig.8.gz /usr/share/man/man8/ifconfig.8.gz /usr/X11/man/man8/ifconfig.8.gz
  26. ######################Find out if pae kernel is supported on your pc##########
  27. grep pae /proc/cpuinfo
  28. #####If you get nothing on the read out. You probably don't have a cpu that supports a pae kernel. Mine for a reference.########
  29.  
  30. $ grep pae /proc/cpuinfo
  31. flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc up pebs bts pni dtes64 monitor ds_cpl cid cx16 xtpr pdcm lahf_lm
  32.  
  33. #########You can get a nice progress bar for dd by using the pv command. If pv isn't installed, it should be in the repository.########
  34.  
  35. pv -tpreb [fullpathandfilenameoftheiso] | dd bs=4M conv=sync of=/dev/sdx
  36.  
  37. ########find the space consuming files on the partition#######
  38.  
  39. du -sxh /*
  40.  
  41. #########Turn off Tap to click, Vector Linux thread link#########
  42.  
  43. http://forum.vectorlinux.com/index.php?topic=17638.0;topicseen
  44.  
  45. #####When I want to trouble shoot graphics. I use everything from ###########
  46.  
  47. xvidtune -show
  48.  
  49. glxinfo | grep -i "direct rendering"
  50.  
  51. cat /var/log/Xorg.0.log | grep -i "dri" | grep -v -i "driver"
  52.  
  53. #######in conjunction with the inxi -G command.########
  54.  
  55. $ inxi -G
  56. Graphics: Card: Advanced Micro Devices [AMD] nee ATI RS780M/RS780MN [Mobility Radeon HD 3200 Graphics]
  57. X.Org: 1.12.4 drivers: ati,radeon (unloaded: fbdev,vesa) Resolution: 1366x768@60.0hz
  58. GLX Renderer: Gallium 0.4 on AMD RS780 GLX Version: 2.1 Mesa 8.0.5
  59.  
  60. #######When I want to certain info on how many cores I am running#########
  61.  
  62. grep 'model name' /proc/cpuinfo|sed -e 's/model name.*: //'|uniq
  63.  
  64. ####################################Find dependencies in a package install####################################
  65.  
  66. apt-cache show <package name goes here> | grep ^Depends | sed 's/, /\n/g;s/^Depends: //' | sort -u
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement