FIFTY FreeBSD Commands you *SHOULD* know!

Поделиться
HTML-код
  • Опубликовано: 30 июл 2024
  • For most users of FreeBSD, the command line is a normal thing, but for newcomers to FreeBSD or the terminal, here just some of the commands available, there are many more, but here is just a taster.... please leave some of your own in the message section if you can think of some more that we all should know :-)
    ----------------------------------------
    Timestamps below:
    ----------------------------------------
    0:00 intro
    0:32 host
    0:56 ping
    1:13 mount
    1:38 df
    2:00 time
    2:36 sleep
    3:04 cal
    3:24 date
    3:32 locate
    3:56 find
    4:25 gzip
    5:16 gunzip
    5:37 sort
    6:01 od
    6:42 wc
    6:55 uniq
    7:25 pwd
    7:40 mkdir
    7:52 ls
    8:03 cd
    8:16 rmdir
    8:37 touch
    9:00 cat
    9:19 rm
    9:46 cp
    10:16 mv
    10:45 head
    11:00 tail
    11:10 more
    11:45 less
    12:05 su
    12:22 doas
    12:45 id
    13:10 adduser
    13:41 rmuser
    14:06 hostname
    14:15 env
    14:26 uname
    14:36 uptime
    14:48 who
    14:54 ac
    15:02 top
    15:12 man
    15:38 freebsd-update
    15:58 pkg
    16:31 kld
    16:48 pciconf
    17:11 dmesg
    17:27 sysctl
    17:54 mixer
    18:36 zfs
    19:19 special mention - bectl & beadm
    ----------------------------------------
    You can view our videos on Odysee at:
    odysee.com/@RoboNuggie:0
    odysee.com/$/invite/@RoboNugg...
    -----------------------------------------
    Music:stage7 = / 8-bit-mentality
    -------------------------------------
    #robonuggie #freebsd #ghostbsd #hellobsd #nomadbsd #bsd
  • НаукаНаука

Комментарии • 56

  • @juliannoble2095
    @juliannoble2095 Год назад +16

    touch is something of an oddity in that the primary purpose has always been to change the timestamps on a file. That it creates the file if the name doesn't exist feels something of a side-purpose, and yet it's probably the most common way it's used. There is even a -c option (don't create) that silently does nothing; I guess so that if your task really is to reset timestamps you don't accidentally spam new files into the folder.

    • @RoboNuggie
      @RoboNuggie  Год назад +6

      I had no idea of touch's true purpose..... thank you...and a very useful one too....

    • @mirror1766
      @mirror1766 Год назад

      I've used touch after using cat to join file segments into the original file with `touch -r file.piece1 file` so that I maintain a more original timestamp.

  • @Chris-mr8ef
    @Chris-mr8ef Год назад +12

    I am daily driving linux but i always have a freebsd desktop around ( apart from the classic opn/pfsense ) just to show my appreciation to the project.Your channel has been very helpful in introducing me to freebsd, cheers.

  • @aguilar1015
    @aguilar1015 Год назад +5

    One of my best RUclips channel for FreeBSD

  • @Felix-ve9hs
    @Felix-ve9hs Год назад +8

    1:59 47: If you use ZFS instead of UFS, "zfs list" is recommended over "df -h"
    8:24 31: I always foget "rmdir" is a thing, most of the time I use "rm -r"
    9:38 28: I once mixed up "rm -r /*" with "rm -r .*" ... thankfully I had zfs snapshots
    12:40 20 On thing to note is that "doas" isn't in FreeBSD but has to be installed
    15:39 8 If one is lazy, he/she might want to run "freebsd-update fetch install" :D
    15:58 7 Run "pkg clean" and "pkg autoremove" once in a while to save disk space
    Commands I did not know about are time, od, env, who, ac, mixer, most of which I will add to my collection :^)

    • @mirror1766
      @mirror1766 Год назад

      If a command is potentially risky, I do something like `ls /*` and after seeing what is listed, I go back into history to replace "ls" with "rm -r" (uparrow and edit the line though your shell may have different and better ways). People mention how its dangerous to be root because of accidents like rm command; my as-root-mistake I once made also ended up as a .* removal and since it was in my non-root home directory it was just as destructive despite the 'not being root makes things safe' attitude.

  • @GamingHelp
    @GamingHelp 11 месяцев назад +1

    Outstanding intro video. This is enough to get a new user 98% of the way to where they need to be to use the OS.

  • @JoeyGarcia
    @JoeyGarcia Год назад +7

    Great video! Also great list of commands too! I would add the service command and the portsnap command. The first to manipulate services such as sshd and the such. It allows you to enable, disable, start, stop, etc. The portsnap command allows you to fetch and install the ports tree. Oh, and freebsd-version is useful too and I feel goes hand-in-hand with freebsd-update

    • @RoboNuggie
      @RoboNuggie  Год назад +1

      Excellent additions! Thank you......

  • @reptilicusrex4748
    @reptilicusrex4748 Год назад +5

    Thanks again for making theses videos.

    • @RoboNuggie
      @RoboNuggie  Год назад

      And thank you for being here!

  • @peterschreiner8813
    @peterschreiner8813 Год назад +6

    Very informative video - as always(!).
    I would be interested in video on how you create your videos. The whole process (with FreeBSD tools only): idea -> video and sound recording and editing.
    FreeBSD is my primary OS at home - the only thing I miss at the moment is the support for popular conferencing systems (e.g. Webex, Zoom, Teams).

    • @RoboNuggie
      @RoboNuggie  Год назад +1

      An interesting idea...... the conference tools work OK through the browser...that's if they still have a browser version.... (I haven't checked for looooong while)

  • @Handelsbilanzdefizit
    @Handelsbilanzdefizit Год назад +6

    I mainly use FreeBSD and run Linux in a VirtualBox. BSD is great and I miss nothing.
    Only downside of BSD. Can't run Dockercontainers. And - for some reason - I can't install "Anaconda".
    Docker is obvious, but Anaconda should theoretically work.

    • @rabbitcreative
      @rabbitcreative Год назад +2

      > Can't run Dockercontainers
      That's a plus in my mind.

    • @ngtube9
      @ngtube9 Год назад +1

      Anaconda is running on FreeBSD (13.1)... no problem... I have made a shell script to install it...

  • @XYZ-xm1ew
    @XYZ-xm1ew Год назад +2

    I'm a Linux user.I had no idea about the id command so for, also existing on my system.

  • @colin4379
    @colin4379 Год назад +1

    I love the locate command. It's so much easier to use to find out where a file is than the find command.

    • @mirror1766
      @mirror1766 Год назад

      It is also quicker to search it out of the organized database than wait for the filesystem responses coming back through find; its database is formed by walking the filesystem as a scheduled cron job. If the data is out of date (I often stop cron), or files you want are in an area the cron job would not have had read access to then find can be helpful as it actively walks the current filesystem to return results and has many great output options.

  • @anssimakela
    @anssimakela Год назад +3

    nice work!

  • @user-mr3mf8lo7y
    @user-mr3mf8lo7y Год назад +1

    Thanks a bunch.

  • @richardbennett4365
    @richardbennett4365 10 месяцев назад

    At 8:57, the presenter can also evoke same with $ touch test{1,2,3}.txt

  • @nichtgestalt
    @nichtgestalt Год назад +3

    Wow, the 'Nuggie Cam' in the intro ist really cool. You can do this more often, if you want to. 😎🤓

  • @zshfan
    @zshfan Год назад +3

    Thank You for your work from Soviet Russia!

    • @RoboNuggie
      @RoboNuggie  Год назад +1

      Cool :-)
      Прошла зима,
      настало лето.
      Спасибо партии
      за это!

    • @piotrzawadzki2531
      @piotrzawadzki2531 Год назад

      @@RoboNuggie 😂
      And thanks for great video!

  • @gnuPirate
    @gnuPirate Год назад

    I love this video and your way of explaining. I'll be dipping my toes into BSD soon. I've watched a few vids that say the common commands in Linux which are common to BSD tend to have quite a few less switches and options in BSD (eg. grep). Is this your experience? Do you know of a way to get what I suppose is the full complement of gnu util switches and options for all these common / typical commands into the BSD system?
    Thanks.

  • @lingux_yt
    @lingux_yt Год назад

    great!!

  • @amarmisra9582
    @amarmisra9582 Год назад +1

    Request you to delve some spotlight on using Linux packages (Ubuntu) in compatibility, is it possible to run Ubuntu packages in GUI. I am very curious... Thanks for all your BSD stuff.

  • @armandoromero5661
    @armandoromero5661 Год назад +1

    the other point of touch is it updates the modification date time of a file

  • @richardbennett4365
    @richardbennett4365 10 месяцев назад

    Small correction: uniq does not sort the list. It only shows one instance of each element in a file.

  • @globetrotterdk
    @globetrotterdk 4 месяца назад

    Is there a command to get audio CDs to mount automatically for the user? I am using a USB CD / DVD drive.

  • @joinedupjon
    @joinedupjon Год назад +1

    'easter egg' cal 9 1752 😀
    guess you could have included command line shutdown / reboot
    umount
    strings
    du (du -s is useful for tracking down where all your disk space has gone)

  • @pavelperina7629
    @pavelperina7629 Год назад

    Useful, but ... 90 percent of these are the same on Linux. It would be nice to show the differences: how to use pkg, how to work with zfs, lspci->pciconf -l, lsusb->?, lsblk->geom disk list,camcontrol devlist, gpart show, (helpful to find nvm, sata, USB drives). Then how to configure wifi, why notebook seems to be running under full CPU load, how to mount exfat formatted USB drive, ... and basically first 10 things to do after install. You have ideas for next few videos, i already realized most of it trying nomadbsd on PC and notebook.

    • @mirror1766
      @mirror1766 Год назад

      That sounds like it is not only unrelated to this video (other than its commands and some of the same), but will take several videos to cover in an organized fashion but all great ideas. Did you solve your high CPU use issue? Could be anything from background tasks to a buggy driver to hardware failure to trigger such a thing.

  • @snoopy3793
    @snoopy3793 9 месяцев назад +1

    apm like acpi for battery ?

    • @RoboNuggie
      @RoboNuggie  9 месяцев назад +1

      The apm utility controls the Intel / Microsoft APM (Advanced Power Management) BIOS and displays the current status of APM on laptops.

  • @islam-karam
    @islam-karam Год назад +1

    With all my respects all these command on linux so if you master linux I believe u can master anything.

  • @frozeneye100
    @frozeneye100 Год назад +1

    I am not sure these are bsd basics… they do exactly the same on other posix types systems… I think rename this one as a cli intro instead of bsd specific. Granted, doas is not generally on Linux systems, can be installed easily but I never really saw a need for that if su is available for practical use.

    • @RoboNuggie
      @RoboNuggie  Год назад +2

      I described them as FreeBSD commands because they are available on FreeBSD in the same many Linux videos put Linux in the title because they are available on there too :-)

    • @frozeneye100
      @frozeneye100 Год назад

      @@RoboNuggie keep up the vids. Hope your channel can get many people interested.

  • @elalemanpaisa
    @elalemanpaisa Год назад +1

    He has a face :)

  • @owenwilson25
    @owenwilson25 Год назад

    Goad all these Windows users, or ex-Windows users I suppose; how the heck did you ever find BSD? You were meant to be happy with Linux and stay there.

    • @RoboNuggie
      @RoboNuggie  Год назад

      :-) Now theres a thought.... :-)

  • @douglasconnell6395
    @douglasconnell6395 Год назад +1

    you forgot the nmap command :)

    • @JoeyGarcia
      @JoeyGarcia Год назад +1

      But that is a command that is added to the system either through the ports system or through pkg installer

    • @douglasconnell6395
      @douglasconnell6395 Год назад +1

      @@JoeyGarcia Oh I thought this was a Kali Linux video 😎

    • @RoboNuggie
      @RoboNuggie  Год назад

      :-)

  • @tthenrie1
    @tthenrie1 Год назад

    You forgot to mention that "mv" is also the command to rename a file. Example: mv test.txt test1.txt ---> test1.txt. Very informative. There were several I didn't know. Thanks.

    • @RoboNuggie
      @RoboNuggie  Год назад

      I did didn't I?
      Thank you for reminding me!