Wednesday, October 26, 2011

MANAGING FILES COMMAND

MV
  • Move or rename files
  • Command : mv test1.txt /home/dunnnx/psp

CP
  • Copies files from one location to another.
  • Command : cp test.txt /home/dunnnx/folderlama 

DEL
  • To remove file in windows using cmd 
  • Commmand : del file.txt

RM
  • Deletes a file without confirmation (by default).
  • Command : rm myfile.txt
  • Remove the file myfile.txt

RMDIR
  • Deletes a directory.
  • Command : rmdir folderbaru

LOCATE
  • List files in databases that match a pattern.
  • Command : locate perl


FIND
  • Finds one or more files assuming that you know their approximate filenames.
  • Command : find –name test.txt

WHICH
  • Locate a command
  • Command : which sudo

1 comment:

  1. thanks for this info.....
    i know this command but don't know how to run it

    ReplyDelete