How do you create a file in UNIX

Answer Posted / uma garg

We can also create a File with

List >Filename
It will create a empty file.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a command that will display files in the current directory, in a colored, long format.

668


Differentiate cat command from more command.

566


What is the behavioural difference between cmp and diff commands?

664


Enlist some filename manipulation commands in unix.

539


Who wrote grep?

570






How do I search for a file in unix command?

539


Explain ‘library functions’ with respect to unix commands?

594


What is the size of time_t?

633


How do I use grep to search for a file?

574


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1748


What does grep v grep do?

542


What do chmod command do?

594


Does cp command overwrite files?

612


What is rmdir command?

541


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

614