what will this do $cat > file.c ?(file.c is a file in
current directory)

Answer Posted / pramod krishna

Given file.c is a file in current dirctory.
So the command will remove the existing content and keep
the new content typing

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to restrict incoming messages?

594


What is grep r?

591


What are the commands in UNIX to list the files in a Directory?

620


What is the use of egrep command in unix?

626


Write a command to kill the last background job?

620






Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

591


What difference between cmp and diff commands?

724


What is “chmod” command?

566


What is awk used for?

624


What is {} in find command?

584


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

799


What is the general format of unix command syntax?

694


What does the md command do?

577


What is ctrl d?

596


Which command is used to create a directory?

575