Showing posts with label Dummies guide for Solaris. Show all posts
Showing posts with label Dummies guide for Solaris. Show all posts

Babies Guide to working with directories Linux/Solaris

Here a a basic list of commands to help newbies to work with directories on Linux / Unix

1) How to create a folder

mkdir - this command will make/create a directory


e.g. bash# mkdir folder1


(this command will create a folder 

2) Removing a folder

rmdir - Remove/deletes a folder

e.g. bash# rmdir folder1

flags :
-r  Recursive (very dangerous if you don't know what your doing, i say it cuz of personal experience)
-f  Force (removes files that will not be able to be removed with the normal rmdir command)

these flags are to be used in between the after the rmdir e.g. bash# rmdir -r folder1 

Quick Dummies guide for Solaris/Unix/Linux

Quick Dummies guide for Solaris/Unix/Linux:-

Here are some quick commands for Solaris administrators :- (Most of these commands will work on Unix and Linux as well, this article is written for Solaris 8/9/10 servers, also note that all or most these commands will need root access, without which they may not work)

1) netstat :- it will give you the details of all ports that are on the system along with the port status

e.g. bash# netstat -as | grep 10000
(this will check status of port 10000)