Software Development Exam  >  Software Development Videos  >  Complete Linux Course: Become a Linux Professional  >  Linux Command Line Tutorial For Beginners 11 - touch command

Linux Command Line Tutorial For Beginners 11 - touch command Video Lecture | Complete Linux Course: Become a Linux Professional - Software Development

71 videos

Top Courses for Software Development

FAQs on Linux Command Line Tutorial For Beginners 11 - touch command Video Lecture - Complete Linux Course: Become a Linux Professional - Software Development

1. What is the purpose of the touch command in Linux?
Ans. The touch command in Linux is used to create new empty files or update the access and modification timestamps of existing files.
2. How can I create a new file using the touch command?
Ans. To create a new file using the touch command, you can simply specify the name of the file as an argument. For example, to create a file named "example.txt", you can use the command "touch example.txt".
3. Can I use the touch command to update the timestamp of multiple files at once?
Ans. Yes, you can use the touch command to update the timestamp of multiple files at once. Simply provide the names of all the files you want to update as arguments to the touch command. For example, "touch file1.txt file2.txt file3.txt" will update the timestamps of all three files.
4. Is it possible to change both the access and modification timestamps of a file using the touch command?
Ans. Yes, you can change both the access and modification timestamps of a file using the touch command. By default, the touch command updates the modification timestamp. However, you can use the "-a" option to update the access timestamp and the "-m" option to update the modification timestamp. For example, "touch -a file.txt" will update the access timestamp of the file.
5. How can I check the new timestamps of a file after using the touch command?
Ans. To check the new timestamps of a file after using the touch command, you can use the "ls -l" command. This command will display detailed information about the file, including the timestamps. The "ls -l" command will show the access timestamp in the "atime" column and the modification timestamp in the "mtime" column.
71 videos
Explore Courses for Software Development exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Important questions

,

past year papers

,

video lectures

,

Sample Paper

,

mock tests for examination

,

Objective type Questions

,

Previous Year Questions with Solutions

,

ppt

,

Linux Command Line Tutorial For Beginners 11 - touch command Video Lecture | Complete Linux Course: Become a Linux Professional - Software Development

,

Viva Questions

,

practice quizzes

,

Linux Command Line Tutorial For Beginners 11 - touch command Video Lecture | Complete Linux Course: Become a Linux Professional - Software Development

,

Exam

,

study material

,

shortcuts and tricks

,

Semester Notes

,

Free

,

pdf

,

Linux Command Line Tutorial For Beginners 11 - touch command Video Lecture | Complete Linux Course: Become a Linux Professional - Software Development

,

Extra Questions

,

Summary

,

MCQs

;