Difference between revisions of "Talk:PC-BSD® for Linux Users"
Revision as of 05:23, 23 August 2012
Found a source for some info to include in this section: Unix Toolbox
Started with more necessary/common commands that have nearly identical results, but are invoked differently.
--Tigersharke 05:08, 24 June 2011 (PDT)
Since tigersharke asked, here is the link to the freebsd article for linux users to migrate http://www.freebsd.org/doc/en_US.ISO8859-1/articles/linux-users/index.html
it's at anyone's discretion how that URL will be used in this wiki page. so use it wisely. --"What may be obvious to you, may not be obvious to others. That's why we have to write about them." 23:12, 17 July 2011 (PDT)
Other links to similar pages (added):
lsdev vs. dmesg
I have been a full-time Linux user for five years. I have never heard of lsdev, and typing it at the command line (both as normal user and as root) on my Debian 6.0 system produces a command not found error, yet typing dmesg spits out the expected hardware-related kernel messages. I have always used dmesg regardless of distribution (some Debian based, some based on other distributions, some independent), and have never gotten a command not found error. Since I have not used any of the BSDs (I plan to when I can replace my dead hard disk), I cannot say if dmesg exists in PC-BSD, so I do not feel comfortable editing the table. Piki 15:23, 22 January 2012 (PST)
A storage place for this info which has vastly changed.
If you're comfortable with the command line, you may find that some of the commands that you are used to have different names on BSD. Table 1.4c lists some common commands and their equivalents.
Table 1.4c: Common BSD and Linux Commands
lsdev (Is this used anywhere?)
|discover what hardware was detected by the kernel|
|sysctl dev||cat /proc/devices||display configured devices|
|pciconf -l -cv||lspci -tv||show PCI devices|
|dmesg | grep usb||lsusb -tv||show USB devices|
|kldstat||lsmod||list all modules loaded in the kernel|
|kldload <module>||modprobe <module>||load a kernel module for the current session|
|pbi_add -r <pbiname>||rpm -i <package>.rpm||install software from the command line|
|sysctl hw.realmem||cat /proc/meminfo||hardware memory|
|sysctl hw.model||cat /proc/cpuinfo||CPU model|
|sysctl hw.machine_arch||uname -m||CPU Architecture|
|sysctl hw.ncpu||getconf _NPROCESSORS_ONLN||number of CPUs|
|uname -vm||lsb_release -a
|get release version information|
|gpart show||fdisk -l
|show device partition information|
|fuser||lsof||list IDs of all processes that have one or more files open|