Editing Useful Commands

Jump to: navigation, search

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 9: Line 9:
  
 
==Common Commands==
 
==Common Commands==
 
===Basic Commands on Your system===
 
 
See also in In your directories
 
* [[/usr/bin/]] [[/usr/sbin/]] useful applications for your cli,
 
* [[/bin/]] and [[/sbin/]] system tools.
 
  
 
===For People New to Both Ghost/FreeBSD and UNIX===
 
===For People New to Both Ghost/FreeBSD and UNIX===
Line 23: Line 17:
  
 
[https://www.freebsd.org/doc/en_US.ISO8859-1/articles/linux-users/commands.html Common Commands]
 
[https://www.freebsd.org/doc/en_US.ISO8859-1/articles/linux-users/commands.html Common Commands]
 
===UNIX Command Summary===
 
 
[https://www.bsd.org/unixcmds.html on BSD.org]
 
 
 
===An introduction to Regular Expressions===
 
 
[https://www.bsd.org/regexintro.html on BSD.org]
 
 
===A concise reference of vi commands===
 
 
[https://www.bsd.org/viref.html on BSD.org]
 
  
 
===FreeBSD Command Reference===
 
===FreeBSD Command Reference===
Line 65: Line 46:
 
! scope="col" style="width: 150px;"|'''Addition or Link'''
 
! scope="col" style="width: 150px;"|'''Addition or Link'''
 
|-
 
|-
|sudo [https://www.freebsd.org/cgi/man.cgi?query=pkg-info&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports pkg info] os-generic-userland <nowiki>|</nowiki> grep Version
+
|dmesg
|Shows what version of GhostBSD I am running
+
|[https://forums.ghostbsd.org/viewtopic.php?f=61&p=8353#p8353 ericbsd on the forum]
+
|-
+
|neofetch||shows your installed version with a beastie logo <br/>Fast, highly customizable system info script. This script gathers info about your system and prints it to the
+
terminal next to an image, your distro's logo or any ascii art of
+
your choice!
+
||https://github.com/dylanaraps/neofetch
+
|-
+
|[[sysctl]] kern.osreldate
+
|Shows the same result as uname -U
+
|[https://www.freebsd.org/cgi/man.cgi?query=sysctl&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports sysctl(8)]
+
|-
+
|[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.
+
|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]
+
|-
+
|[[OpenRC]]
+
|command scripts for auto-reboot and daemon startup
+
Files
+
/etc/[[Rc|rc]]
+
/etc/[[rc.conf]]
+
/etc/rc.conf.local
+
/etc/[[rc.d]]/
+
/etc/rc.firewall
+
/etc/rc.local
+
/etc/rc.shutdown
+
/etc/rc.subr
+
/var/run/dmesg.boot
+
|[[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/]]
Line 104: Line 54:
 
|
 
|
 
|-
 
|-
|[[kldstat]]
+
|kldstat
 
|List all modules currently loaded in the kernel.
 
|List all modules currently loaded in the kernel.
 
|
 
|
Line 126: Line 76:
 
|pciconf -l -cv
 
|pciconf -l -cv
 
|Show PCI devices.
 
|Show PCI devices.
|[[File:Jean victor balin book.png|25px|link=https://www.unix.com/man-page/freebsd/8/pciconf/]]
+
|
 
|-
 
|-
 
|scanimage -L
 
|scanimage -L
 
|Shows if the scanner is connected and seen
 
|Shows if the scanner is connected and seen
|[[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/]]''' BSD forums.de'''
 
|-
 
|-
|[[sysctl]] hw.realmem
+
|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
+
|sysctl dev | less
 
|Display configured devices.
 
|Display configured devices.
 
|
 
|
 
|-
 
|-
|[[sysctl]] hw.model
+
|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
+
|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
+
|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/]]
Line 159: Line 109:
 
|Get release version and user.pc information
 
|Get release version and user.pc information
 
|[[File:Jean victor balin book.png|25px|link=https://www.unix.com/man-page/freebsd/1/uname/]]
 
|[[File:Jean victor balin book.png|25px|link=https://www.unix.com/man-page/freebsd/1/uname/]]
|-
 
|freebsd-version
 
|print the version and patch level of the installed base system: FreeBSD, Info is located <code>/bin/freebsd-version</code> on your system
 
|[[File:Jean victor balin book.png|25px|link=https://www.unix.com/man-page/freebsd/1/freebsd-version/]]
 
 
|-
 
|-
 
!colspan="3"|
 
!colspan="3"|
Line 168: Line 114:
 
!colspan="3"|'''Back to the''' [[image:Icon Disti GhostBSD.png|50px|link=GhostBSD Wiki]]''' Wiki'''
 
!colspan="3"|'''Back to the''' [[image:Icon Disti GhostBSD.png|50px|link=GhostBSD Wiki]]''' Wiki'''
 
|}
 
|}
 
 
[[Category:Sysutils]]
 

Please note that all contributions to GhostBSD Wiki are considered to be released under the Creative Commons Attribution (see GhostBSD Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)