Editing Useful Commands
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 12: | Line 12: | ||
===Basic Commands on Your system=== | ===Basic Commands on Your system=== | ||
− | + | [[/bin/|In your directory]] | |
− | + | ||
− | + | ||
===For People New to Both Ghost/FreeBSD and UNIX=== | ===For People New to Both Ghost/FreeBSD and UNIX=== | ||
Line 65: | Line 63: | ||
! scope="col" style="width: 150px;"|'''Addition or Link''' | ! scope="col" style="width: 150px;"|'''Addition or Link''' | ||
|- | |- | ||
− | + | |[https://www.freebsd.org/cgi/man.cgi?query=uname&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html man uname] -U | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |[https://www.freebsd.org/cgi/man.cgi?query=uname&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html uname] -U | + | |
|you get: 1201500 or higher; part 1201 comes from FreeBSD-version 12.01 and 500 seems to bee the level of contribs. | |you get: 1201500 or higher; part 1201 comes from FreeBSD-version 12.01 and 500 seems to bee the level of contribs. | ||
|see also [https://forums.ghostbsd.org/viewtopic.php?f=91&t=1556 ericbsd]; [https://www.cyberciti.biz/faq/how-to-find-out-freebsd-version-and-patch-level-number/ nixCraft Linux and Unix tutorials for new and seasoned sysadmin] | |see also [https://forums.ghostbsd.org/viewtopic.php?f=91&t=1556 ericbsd]; [https://www.cyberciti.biz/faq/how-to-find-out-freebsd-version-and-patch-level-number/ nixCraft Linux and Unix tutorials for new and seasoned sysadmin] | ||
|- | |- | ||
− | | | + | |rc |
|command scripts for auto-reboot and daemon startup | |command scripts for auto-reboot and daemon startup | ||
Files | Files | ||
− | /etc/ | + | /etc/rc |
− | /etc/ | + | /etc/rc.conf |
/etc/rc.conf.local | /etc/rc.conf.local | ||
− | /etc/ | + | /etc/rc.d/ |
/etc/rc.firewall | /etc/rc.firewall | ||
/etc/rc.local | /etc/rc.local | ||
Line 96: | Line 81: | ||
|[[File:Jean victor balin book.png|25px|link=https://www.freebsd.org/cgi/man.cgi?query=rc&apropos=0&sektion=8&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html]] | |[[File:Jean victor balin book.png|25px|link=https://www.freebsd.org/cgi/man.cgi?query=rc&apropos=0&sektion=8&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html]] | ||
|- | |- | ||
− | | | + | |dmesg |
|Discover what hardware was detected by the kernel and other system related information. | |Discover what hardware was detected by the kernel and other system related information. | ||
|[[File:Jean victor balin book.png|25px|link=https://www.unix.com/man-page/freebsd/8/dmesg/]] | |[[File:Jean victor balin book.png|25px|link=https://www.unix.com/man-page/freebsd/8/dmesg/]] | ||
|- | |- | ||
− | |dmesg | + | |dmesg | grep usb |
|Show USB devices. | |Show USB devices. | ||
| | | | ||
|- | |- | ||
− | | | + | |kldstat |
|List all modules currently loaded in the kernel. | |List all modules currently loaded in the kernel. | ||
| | | | ||
Line 132: | Line 117: | ||
|[[File:Icon FreeBSD.png|100px|link=https://www.bsdforen.de/threads/scanner-device-in-qt5-variable-einlesen.33977/]] [[File:1329059652.png|35px|link=http://www.sane-project.org/man/scanimage.1.html]] | |[[File:Icon FreeBSD.png|100px|link=https://www.bsdforen.de/threads/scanner-device-in-qt5-variable-einlesen.33977/]] [[File:1329059652.png|35px|link=http://www.sane-project.org/man/scanimage.1.html]] | ||
|- | |- | ||
− | | | + | |sysctl hw.realmem |
|Display hardware memory. | |Display hardware memory. | ||
|[[File:Jean victor balin book.png|25px|link=https://www.unix.com/man-page/freebsd/8/sysctl/]] | |[[File:Jean victor balin book.png|25px|link=https://www.unix.com/man-page/freebsd/8/sysctl/]] | ||
|- | |- | ||
− | | | + | |sysctl dev <nowiki>|</nowiki> less |
|Display configured devices. | |Display configured devices. | ||
| | | | ||
|- | |- | ||
− | | | + | |sysctl hw.model |
|Display CPU model. | |Display CPU model. | ||
|[[File:Jean victor balin book.png|25px|link=https://www.unix.com/man-page/freebsd/8/sysctl/]] | |[[File:Jean victor balin book.png|25px|link=https://www.unix.com/man-page/freebsd/8/sysctl/]] | ||
|- | |- | ||
− | | | + | |sysctl hw.machine_arch |
|Display CPU Architecture | |Display CPU Architecture | ||
|[[File:Jean victor balin book.png|25px|link=https://www.unix.com/man-page/freebsd/8/sysctl/]] | |[[File:Jean victor balin book.png|25px|link=https://www.unix.com/man-page/freebsd/8/sysctl/]] | ||
|- | |- | ||
− | | | + | |sysctl hw.ncpu |
|Display number of CPUs. | |Display number of CPUs. | ||
|[[File:Jean victor balin book.png|25px|link=https://www.unix.com/man-page/freebsd/8/sysctl/]] | |[[File:Jean victor balin book.png|25px|link=https://www.unix.com/man-page/freebsd/8/sysctl/]] |