Skip to main content

Posts

Showing posts from April, 2008

Linux Commands - Part 2

ls   - T his command is use to list files and folders.      ls                        {list current directory}    ls /media           {list /media files and folders in   directory media }    ls -l                     {list permission}    ls -a                   {list all, including hidden files, etc} c p - T his command is use to copy files and folders     cp   test /home/melick { copy test file to /home/melick folder}      cp   /root/s.txt   .          {copy s.txt to current directory (.)}      cp -r /root   /home/melick         {copy entire root folder to melick}                   mv - T his is used t move and rename files and folders     mv   test /home/melick         { move test file to /home/melick folder}    mv   /root/s.txt   .      { move s.txt file in /root to current folder (.)}    mv test1 test2             {rename test1 file to test2}            rm - This is used t delete files and folders    rm /home/Melick/tes t       {delete the test file...

Linux Commands - Part 1

chmod -  this is the command hat we use to change the permission.  ex:- chmod 777  test {change the permission to 777 the file test in the current directory} chmod 777 /home/melick/test {change the permission to 777 the file test in the /home/melick directory} chmod   g-r test {remove read permission in the group} chmod   g+r test {add read permission in the group} chmod   o-r test {remove read permission in the other} chmod   o+r test {add read permission in the other} chmod   u-r test {remove read permission in the user/owner} chmod   u+r test {add read permission in the user/owner} chmod   u=r test {read permission only to the user/owner} chmod   u=w test {write permission only to the user/owner} chown -  this command is use to change the owner of the file. chown root test     { if we want to change ownership to the file to the root } -rw-r--r-- 1 root melick 0 2008-12-21 21:11 test chown Melick:Sachika test {change 'test' files...