Linux Intermediate

  1. command to list files
    ls
  2. by default, linux does not list what type of files?
    dotfiles .access
  3. to see all files, what flag do you add?
    ls -al
  4. to see user acess what flag do you use?
    ls -l
  5. to get to the home directory?
    cd ~
  6. wild card for one letter
    ? as in ls a? will return everything that has a and another single character (am, a1, etc.)
  7. wild card for any number of letters
    *
  8. difference between * and ?
    * any number of characters where as ? is one character or digit only. * covers ? and ??, etc.
  9. How to go up one level in the structure?
    Cd ..
  10. how to go up 2 levels in the structure?
    cd ../..
  11. command for copying files in same directory
    cp cas
  12. Copy files or rename them
    cp counter.pl counter.pl.old
  13. Duplicate a whole directory
    cp -a cgi cgi2
  14. Move or rename a file
    mv counter.pl.old counter.pl.original
  15. delete file
    • rm remove
    • rm counter.pl.original
  16. create a directory
    mkdir images
  17. remove directory
    rmdir images
  18. remove all the files in a directory
    rm -r cgi2
  19. If you copy more than one file
    cp cgi-lib.pl counter.pl guest.pl backups
Author
dalbabes
ID
73134
Card Set
Linux Intermediate
Description
More Linux
Updated