Introduction to Linux

Linux is an open-source operating system that has various distributions. Such as Ubuntu, Debian, and Fedora Linux distributions. You can explore the diversity and choose a distribution that aligns with your needs.

Basic Linux command:

  1. To create a file in Linux:

     ubuntu@ip-172-31-44-248:~$ touch file1
    
  2. To create multiple files:

     ubuntu@ip-172-31-44-248:~$ touch file2 file3 file4 file5
    
  3. To check whether files are created or not:

     ubuntu@ip-172-31-44-248:~$ ls
     file1  file2  file3  file4  file5
    
  4. To create a directory in Linux:

     ubuntu@ip-172-31-44-248:~$ mkdir dir1
    
  5. To Go inside the directory:

     ubuntu@ip-172-31-44-248:~$ cd dir1
    
  6. To create multiple directories inside a directory:

     ubuntu@ip-172-31-44-248:~/dir1$ mkdir a b c d
    
  7. TO copy files from source to destination(to directory): The file cannot be copied into another file it can be copied to a directory only. But a directory can be copied to another directory.

     ubuntu@ip-172-31-44-248:~$ cp file1 dir2
     ubuntu@ip-172-31-44-248:~$ cp -r dir1 dir2
    

    This blog was about Introduction to Linux and some Basic Linux commands. Learning the basics can greatly enhance your ability to work effectively in a Linux environment.