answersLogoWhite

0

Linux command to create myfiletxt in the DATA folder?

Updated: 8/16/2019
User Avatar

Wiki User

12y ago

Best Answer

You want to do that from command line?

Create folder DATA with mkdir DATA. (You should have permissions to create it)

If you want to create an empty file, just say touch DATA/myfile.txt

Or you can use the vi editor to write to the file (vi will open the file if it exists else will create that file for you), just type vi DATA/myfile.txt

You may need to learn some vi keys before you try that. On Linux, try vimtutor!

And just in case you think it is boring to type DATA/something... do CD DATA after creating the directory (folder) . Enjoy :)

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Linux command to create myfiletxt in the DATA folder?
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".


Which Linux command is equivalent to Windows' MD command?

In a Linux terminal, the command to create a new directory is: mkdir .


Linux command to list a folders contents?

The LS command: ls folder Type man ls for more details.


How do you remove a directory with substructures in Linux?

You can remove a folder recursively with the command: rm -r dirname


When you create a device special file in what folder should it be stored in Linux?

Usually they are stored in /dev


What is the command to create a user in Linux?

su command is used to change the user.


Where can one learn more about Linux's TAR command?

The TAR command is Create Tape ARchives and is used by Linux and Unix. Information and explanations can be found on the linfo and computerhope websites.


How do you create users in Linux?

To create a new user account under any Linux distribution use command called useradd. The system administrator is responsible for creating account. Login as root user (or use sudo command).


What does the k command do in Linux?

k is not a standard command in Linux.


What command in Linux is do you use to mount USB storage device sda1 to folder mnt?

mount /dev/sda1 /mnt/<mount point>.


What is the command to turn on Linux?

There is no such command. Obviously, in order to enter a command into the prompt, Linux must already be on.


How do you create directory or folder in Linux?

There's actually no such thing as a "hidden" file or folder in Linux. In Windows, files and folders are hidden by setting a file attribute on them, and is used to prevent novice users from viewing or modifying them. In Linux, a file or folder can be "hidden" from most shells and file managers by simply prefixing a "." in front of the name (.settings, for instance). A simple 'View > Show hidden files' or "ls -a" is all it takes to list them. The purpose is thus purely for cosmetic / organizational purposes.