Some useful points in the blog were:
- In Unix, if U want Ur application or server to use a port less than 1024, then U must be running as 'root'. This imposes security risks !!!
- In Unix, it is possible for one process to open a file stream and an another process to delete the same file. (Windows does a automatic file lock). For the same reason, in Unix, U can delete a directory right from under it.
- Equivalent of Windows services in the Unix world are just plain shell scripts that are mentioned in the /etc/init.d directory.
- The Unix shell runs scripts by creating a copy of itself and running the script in the new shell. This new shell will read in the script, perform all the steps in the script (e.g. set all the environment variables) and then exit, leaving the original shell and its environment unchanged. So to run scripts in the same shell, we need to type ". setenv.sh" For c-shell, we need to type "source setenv.sh"
- And last, but not the least, every developer learns early - Unix new line character is \n and on Windows \r\n.
No comments:
Post a Comment