answersLogoWhite

0

What is touch in Linux?

User Avatar

Anonymous

11y ago
Updated: 8/17/2019

The touch command is used to change the access times and modification times. For example, if I want to change a file to say it was last modified on February 23, 1985, at 12:31 PM, then all I have to do is:

touch -m -t 198502231231 file.txt

*********************************************************

Another use of touch is to create a new file. For example, this terminal command: touch test1 will create a new file named test1 in the home directory. It will show when the command ls is used.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

How can you create a file named -i in Linux?

Type at a terminal prompt: touch filenameType lsThe new file, filename, will appear in the list of directories.Typing touch -i (as in your question) will fail with the error message touch: invalid option


What command would you use to create an empty text file in Linux?

#Touch newfile Will make an empty newfile


Which command is used to create an empty file with file size zero bytes so that you can write in these files later in unix and Linux?

touch newfile will make a new empty file in linux os !


Linux Vps Server?

Check out the Linux Vps Server options with our in-depth guide to VPS server companies. Discover trustworthy VPS choices and get in touch with knowledgeable suppliers to identify the ideal match for your needs.


Does using a Linux LiveCD leave anything on the hard drive?

No. A L:iveCD will not even touch the hard drive unless you tell it to.


What is the Firefox setup for?

Firefox is compatible with Windows, Linux, Macintosh, and any other computer brand. However, you CANNOT download it on an iPhone or iPod Touch.


Do you need an apple computer to restore a passcode for yourn ipod touch?

No, u can use any computer with iTunes on. (that means a PC or Linux too)


What is Linux Internals?

Linux Internals is a book about how Linux works.


What is the Linux world?

Linux World is the Linux Development & Training Center


What kind of courses are available in linux And what are the papers in Linux?

The courses available for Linux include Linux server, Linux desktop, bash shell, and many others.


How would you create a file name containing a space?

touch "abcd efgh" touch 'abcd efgh' touch abcd\ efgh are three possibilities, given that you use a Linux shell. Otherwise, it may depend on the specifics of the software (e.g. libreoffice, emacs, firefox...), usually you can do it staghtforwardly when saving a file.


Where can one obtain the latest Linux news?

One can obtain the latest Linux news on websites such as CRN, Linux Today or Distro Watch. One can also find news about Linux on Arch Linux and Linux Journal.