Posts

Showing posts with the label Some Unix

unix commands part-1

simple and frequent use commands -- can not update all same time will update more day by day cd   ==> change directory. ls   ==> the list command. mkdir ==> allows the user to make a new directory rmdir  ==> remove directory ( Be very careful using the rm command ). rm ==>   the rmdir command will remove directories and files held within, the rm command. will delete created files( Be very careful using the rm command ). CP  ==> allows a user to copy a file to another folder or directory. mv  ==>  allows a user to move a file to another folder or directory. touch ==>  allows users to make files using the(exaple  touch test.txt ). more ==>  Look at file, one page at a time. cat  ==>   concatenate and display files. bdf ==> See how much free disk space (in linux use df ).  du ==>  Estimate disk usage of directory in Bytes. top ==>...

Unix commands part-2

little detailed in commands.. for shel script use -----There are many commands will add few and update it day by day---- --date command in different way use in shel $ date Fri Oct 27 09:27:04 EAT 2017 $ date '+%a' Fri $ date '+%d-%b-%y' 27-Oct-17 $ date '+%d-%b-%y %a' 27-Oct-17 Fri ----------same in capital letter  $ date '+%d-%b-%y %a' | tr '[a-z]' '[A-Z]' 27-OCT-17 FRI ================= ======================== ======================== chmod ======================== ======================== ================= Change file permissions there are 3type of permisons  r ead,  w rite, ande  x ecute EXAMPLE:  chmod u=rwx,g=rx,o=r filename The letters  u ,  g , and  o  stand for " user ", " group ", and " other ". (" = ") means "set the permissions exactly like this letters " r ", " w ", and " x " stand for "read", ...