answersLogoWhite

0


Best Answer

#Touch newfile Will make an empty newfile

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What command would you use to create an empty text file in Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the output of mkdir DesktopCS604 in Linux?

There is no text output. That command would create a directory / folder called "DesktopCS604".


What is the Linux command to create a file named security?

As files can be of any number of types, there is no single command that will do this. You would use the program associated with that file type to create a file. If you wanted to create a "blank" file, that has no content and uses no space, use the command touch filename.


Would it be difficult to create a portable DOS or Command-line Linux variant?

It is possible to boot MS-DOS or Linux from a USB Flash drive, but not all computers support doing it.


Which task can you perform with the dd command?

There are lots of tasks you can perform with the dd command. The most common would be to create an image file from a disk or partition. Another use would be to create an empty file of an arbitrary size.


What command would cleanly reboot your Linux box?

init 6


What command prompt would you use in Linux to see filesystems in use?

mount


What Linux command is used to zip only a subdirectory?

In order to zip a subdirectory in Linux you would use the zip command with the recursive flag to specify that it should add all files under that directory into the zip file. The command would then be zip -r .zip .


What command would you use to test Dns name resolution at a Windows command prompt?

nslookup if it was a linux machine nslookup works too, but dig -x on a linux machine will get more info for you


What command is used to create a suddirectory and change the current directory and to remove a subdirectory?

If for example we wanted to make i subdirictory called foo in Linux or UNIX it you use mkdir foo to change into it you would use CD foo to remove the directory rmdir foo but this will only work if the directory is empty to remove the directory called foo when it is not empty use rm -rf foo but please be sure this is what you really want to do.


What command starts the command line in Linux?

That would be a semi-contradiction; the command line would need to be already running in order to enter a command. The name of the program that actually provides the command line is called a shell. There are many different shells available for Linux, including Bash, ash, C Shell, fish, ksh, zsh, and scsh.The default command shell is /bin/sh (not /bin/bash, note).


What does the command r 12 accomplish on Linux?

"r" is not a standard command on Linux systems. Some systems may included or provide support for the R programming language, in which case the command would launch the "littler" program to run R commands included in the file 12.


What was the idea behind Linux?

The idea behind Linux was to create an operating system that could run UNIX software, but would be free.