purpose of 'touch' command

 

  touch - changes the date and time of the file to the current date/time.If the file doesnot exists it will create an empty file.

  Format touch filename

  Eg1: touch file1

  Here it creates a file file1 in the present working directory,.

  Eg2: touch file{1,2,3,4}

  Here it creates files file1,file2,file3,file4 in the present working directory

  • 27 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

what is the command 'ls' used for?

       ls – list directory contents.    ...

for what the command 'tail' is used for?

  tail – print the last 10 lines of the named file.If more than one file is specified...

for what purpose the commad 'du' is used for?

      du- estimates the file space usage.   Format: du [options] [file]...

what is the use of command 'grep'?

    grep- search one or more files that matches a regular pattern  Format:...

'cp' command in linux

    cp - copy files and directories.  Format: cp [options] source...