Posts

Showing posts from September, 2021

mkdir command

Image
mkdir command This command creates new directory if directory already exists then displays error. In this post, we will teach you about how to create a directory And we will discuss about other important feature of this command. So let's learn ...  Syntax: $mkdir  [options]  dir1 dir2  1. mkdir dir1:-  it creates a directory. you want to create multiple directories at once, then you can do something like this  There are three dir1,dir2,dit3 poli files created here.  2. mkdir -p dir/dir1 :- We discuss about it by taking an example so that it is easy for you to understand. We are currently in a directory named c ontact , it means our current working directory is contact.  Four directories exist inside the current working directory:- dir , dir1, dir2, dir3 . Now we want to create directory named subpoto  inside photo directory but directory named photo itself does not exist in current working directory (contact).  The -p (--parent)option is helpful in such situations.  With the help

cat command

Image
  cat command cat = concatenate  In this section, what is cat command and why we use it and what are its options, we will give detailed information about all these questions by giving examples.so let's learn  A.what is cat command ? it concatenates files and displays them on the screen.  This means that this command continuously displays the contents of the files one after the other, so that we think that this content is present inside the same file which is displayed on the screen. B. why use cat command ? We can have many files present, by opening these files, we use its contents for useful work.Sometimes these files prefer to view the contents of all the files together instead of opening one file at a time, this command is very useful at that time. Apart from this, there are some other important features of this command, which will be known further. C. operation with its options  In this we will discuss the cat command with its option. Within this, we will tell the main purpose

touch command

Image
touch command  Use this command to change the access and modification time of the file. Creates an empty file if the file does not already exist.In this, what is the access and modification time and how do we change this time. Along with this, how to create empty files, you will know in detail about all these.  *Access and modification time is also called time stamps. 1.what is the access time? The last time the file was access or read . We read the file through some commands like cat, vi and nano. Keep in mind that only you have to open it and not make any kind of change to the content inside it.    2. What is modification time:- The time when the content inside the file was last modified. In this, we open the file and modify its content.  3. Why are we use touch command ?  We access and modify the file by opening it, the access and modification time also changes in its reflection. But without accessing and modifying the file, its access and modification time can be changed and this w