New to FreeNAS: Working with commandline

Status
Not open for further replies.

mgswed

Cadet
Joined
Mar 19, 2013
Messages
9
Hello, I am very new to Linux and FreeNAS, sorry if this has been discussed elsewhere but I haven't found anything yet.

I am trying to work in bash via SSH using the find command. Find works but when I try to add the switch -daystart I get an error. Is there a way to install the GNU findutils so that I can use this feature.

Ultimately I am trying to find all files modified or created from midnight to midnight of one day. I don't want to use the start time from when the command was run. Please let me know if this makes sense or I will elaborate some more.

Thanks.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
mgswed,

Since you're new to Linux, the first thing you need to understand is that FreeNAS is NOT Linux. It is based on FreeBSD which is UNIX, basically the great-great-great-grandfather of Linux (maybe another great in there). So if you want to learn about UNIX and FreeBSD commands, a good place to look is http://www.freebsd.org/. You can find a documentation link there, then look for commands like "find". You'll figure out that many commands are similar, but not quite exactly the same. So when you're searching google for a FreeBSD command, try something like "freebsd man find" and you'll usually get the correct man page for the FreeBSD version of commands. I gave up years ago trying to remember the differences in commands between different flavors of Unix and Linux, so it's always a good idea to know how to look them up. :)
 

mgswed

Cadet
Joined
Mar 19, 2013
Messages
9
Thank you ProtoSD. In my ignorance I thought I had read that freenas8 was going to be based on Linux/GNU. Also thank you for the info on the freebsd man pages. They have helped a lot. I think I have my nas to a point where I like it now. My command lines seem to be working correctly. Might have some questions later.
 
Status
Not open for further replies.
Top