For setting up a simple web server running on Mac OS Sierra, the easiest way is to use the default apache web server that is supplied with the OS. Its disabled by default, so start it with sudo privileges.
$ sudo apachectl start
Similarly, to stop the web server use
$ sudo apachectl stop
Apache configuration file is located at /etc/apache2/httpd.conf which you will need to edit in sudo mode. Webroot directotry is located at /Library/WebServer/Documents.
To enable php, uncomment LoadModule php5_module libexec/apache2/libphp5.so line in the Apache configuration file.
If you need to find the partition type of your hard disks on Linux/FreeBSD, check this question on stackoverflow:
To addd a new hard disk in debian from command line, look at this article:
It uses UUID to enable the hard disk which enables using the hard disk even when more hd are attached or some are removed from the system. For Debian Jessie (ver 8.x) users, there is an additional step to choose disk label type while partitioning the disk using cfdisk. To avoid any in-compatibilites, I would suggest using the same disk label type as the one being used in your current hard disk. This can be determined using fdisk – l command, where the output will contain “Disklabel type:” for the existing hard disk.
If you need to create a bootable USB stick from a ISO file in mac, you need to convert the file format. See the following page for more info:
If even you need to search through /usr/ports/UPDATING file on FreeBSD, it becomes a tedious task on the command line if your grep knowledge is not good. A browser based interface through which you can query using keywords is available at http://updating.braincomb.com .
If you ever need a run a program as a service on Windows, there is a nifty little utility called nssm. For an easy explanation on how to use nssm, see this link:
If you need to create a hard link on Windows (as opposed to soft links which are created by default), you can create it using command line. The exact syntax would be:
mklink /J <Link> <Target>
So say you need to create a link www in the current folder which needs to point to D:\my_files\html, the command would be:
mklink /J www D:\my_files\html
This utility works in Windows Vista and Windows 7, and should also work on Windows 8 & 10.
If you need to sort icons in launchapd on mac alphabetically, just run this command in the terminal:
defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock
If you do need to setup ssh login between your servers or between your personal machine and server, see this link:
For writing the usb image files, likes the one mentioned at ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/10.3/, to usb drives on a mac, see this link https://people.freebsd.org/~seanc/freebsd/create-memstick-osx/ .
The usb images are differentiated from the normal ISO files by the presence of “memstick” in the file name.