FIFTY FreeBSD Commands you *SHOULD* know!

แชร์
ฝัง

ความคิดเห็น • 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.

  • @aguilar1015
    @aguilar1015 ปีที่แล้ว +5

    One of my best TH-cam channel for FreeBSD

  • @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.

    • @RoboNuggie
      @RoboNuggie  ปีที่แล้ว +1

      Thank you for that :-)

  • @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!

  • @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.

  • @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)

  • @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.

  • @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.

  • @anssimakela
    @anssimakela ปีที่แล้ว +3

    nice work!

  • @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...

  • @user-mr3mf8lo7y
    @user-mr3mf8lo7y ปีที่แล้ว +1

    Thanks a bunch.

  • @nichtgestalt
    @nichtgestalt ปีที่แล้ว +3

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

    • @RoboNuggie
      @RoboNuggie  ปีที่แล้ว

      I'm thinking about it :-)

  • @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.

  • @zshfan
    @zshfan ปีที่แล้ว +3

    Thank You for your work from Soviet Russia!

    • @RoboNuggie
      @RoboNuggie  ปีที่แล้ว +1

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

    • @piotrzawadzki2531
      @piotrzawadzki2531 ปีที่แล้ว

      @@RoboNuggie 😂
      And thanks for great video!

  • @lingux_yt
    @lingux_yt ปีที่แล้ว

    great!!

  • @richardbennett4365
    @richardbennett4365 10 หลายเดือนก่อน

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

  • @armandoromero5661
    @armandoromero5661 ปีที่แล้ว +1

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

  • @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.

  • @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)

  • @richardbennett4365
    @richardbennett4365 10 หลายเดือนก่อน

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

  • @globetrotterdk
    @globetrotterdk 3 หลายเดือนก่อน

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

  • @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.

  • @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.

  • @elalemanpaisa
    @elalemanpaisa ปีที่แล้ว +1

    He has a face :)

  • @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.

  • @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!