In this video, we will learn how to use touch command. The main purpose of this command is to change file access and modification time but it can be used to create a new file. In simple terms, it is used to change the timestamp of a given file.
touch can create a new file too. I find it much simpler to create a new file using touch. It is possible to create a file with any file extension. Moreover, you can create multiple files with just one command.
Remember you can always type man touch to learn more about the command.
We will also learn about some flags along with touch command:
-t = pass in custom timestamp -a = just change access timestamp -m = just change the modified timestamp -r = copy timestamp from another file
In this video we will learn how to use stat command. stat is a command-line utility that displays detailed information about given files or file system. In simple words stat is used to display file information or properties.
Remeber you can always type man stat to learn more about the command.
We will also learn about some flags along with stat command:
-f = this flag is used for formatting custom output
In this video we will learn how to use alias and unalias command. alias are like custom shortcuts used to represent a command executed with or without custom options. You can save yourself some time by creating aliases for your most used commands.
Whereas unalias is used to remove the shortcut which was initially created. Pretty simle!
Hello, I’m Yash. Sole programmer at planetvearcity – a place where programmers come to learn, build, and grow.
Linux is a computer operating system. There are two kinds of user interface. One is a Graphical User Interface(GUI) and another one is Command Line Interface(CLI). We all know how to use a GUI. GUI is easy to use, so why bother learning CLI?
One word, Speed! You can do things way faster with CLI than you will ever be able to do with GUI. It is possible to create tens of thousands of folders in few seconds with one simple shell script.
We will be starting with basic concepts such as ls, cd, mkdir and we will go all the way up-to nano editor.
It is going to be an amazing journey all along. I promise you will learn a ton and enjoy all in one playlist.
In this video we will learn how to use cat on linux terminal. cat means concatenate and print files. We can use cat command to display content of a file. It can also be used to combine files. cat can also be used to create new files.
-n : display line number including line breaks
-b : display line number excluding line breaks
-s : will squeeze unnecessary line breaks(leave only one line break if exist)
-e : show $ symbol at end of each line break
If you have any requests for future videos you can POST them in comments or mail it to me.