Friday, July 18, 2008

Mostly Used Simple Unix Commands For Testers

  1. To create a file ==> cat↑>↑filename
  2. To read a file ==> cat↑filename
  3. To append existing file ==> cat↑>>filename
  4. To copy a file ==> cp↑file1↑file2
  5. To rename a file == > mv↑file1↑file2
  6. List your file ==> ls↑-a
  7. List all files ==> ls↑-al
  8. List directories with contents ==> ls↑-R
  9. List directories without contents ==> ls↑aFd
  10. To remove a directory ==> rmdir↑directory name
  11. To remove non empty directory ==> rm↑-r↑directory name

No comments: