To study the execution of various Linux operating system commands.
Linux is an open-source operating system. The kernel is the heart of Linux OS which
helps the communication between hardware and software. The main advantage of Linux was that programmers can use Linux kernel to design their own custom OS.
Linux Commands: All basic and advanced tasks can be done by executing commands. The commands are executed on Linux terminal. Linux commands are case sensitive.
The ls command is used to display a list of content of a directory.
The pwd command is used to display the location of the current working directory.
The mkdir command is used to create a new directory under any directory.
The rmdir command is used to delete a directory.
The cd command is used to change the current directory.
The cat command is a multi-purpose utility in the Linux system. It can be used to create a file, display content of the file, copy the content of one file to another file, and more.
Syntax: cat [OPTION]... [FILE]..
The cp command is used to copy a file or directory.
The gedit is a general-purpose text editor. It can be used to create and edit all kinds of text files.
The su command provides administrative access to another user. In other words, it allows access of the Linux shell to another user.
The mv command is used to move a file or a directory form one location to another location.
The rename command is used to rename files. It is useful for renaming a large group of files.
Syntax: rename 's/old-name/new-name/' files
The head command is used to display the content of a file. It displays the first 10 lines of a file.
The tail command is similar to the head command. The difference between both commands is that it displays the last ten lines of the file content. It is useful for reading the error message.
The id command is used to display the user ID (UID) and group ID (GID).
Syntax: id
The grep is the most powerful and used filter in a Linux system. The 'grep' stands for "global regular expression print." It is useful for searching the content from a file. Generally, it is used with the pipe.
Syntax: command | grep
The tr command is used to translate the file content like from lower case to upper case.
Syntax: command | tr <'old'> <'new'>
The chmod command is used to change the access mode of a file (i.e., read, write or execute)
Syntax: chmod<file_name>
The tar command is used for creating Archieve and extracting the archieve files.
Syntax: tar[options][archieve-file] [file to be archieved] $ tar xvzf file.tar *.c
The chown command is used to change ownership.
Syntax: chown owner_name file_name
The make command is used for building and maintaining group of program.
Syntax: make [-f makefile][options]…….[targets]….
The ifconfig command is used to configure kernel-resident network interface.
Syntax: ifconfig[options][interface]
The chmod 777 command gives read, write and execute permission to the owner, group and public.
Syntax: chmod 777 file_name $chmod -R 777 /path/to/file/or/folder
The host command is used to display the IP address for a given domain name and vice versa. It performs the DNS lookups for the DNS Query.
Syntax: host or
The gzip command is used to truncate the file size. It is a compressing tool. It replaces the original file by the compressed file having '.gz' extension.
Syntax: gzip ..
The sort command is used to sort files in alphabetical order.
Syntax:sort
The cal command is used to display the current month's calendar with the current date highlighted.
Syntax: cal
Linux clear command is used to clear the terminal screen.
Syntax: clear
The mail command is used to send emails from the command line.
Syntax: mail -s "Subject"
The df command is used to display the disk space used in the file system. It displays the output as in the number of used blocks, available blocks, and the mounted directory.
Syntax: df
The find command is used to find a particular file within a directory.
Syntax: find.-name”*.pdf”
Thus, the execution of various Linux commands is executed successfully using Ubuntu OS.