Top/All Files and Directories Commands | Linux Commands

 In this article, we will continue the tutorial of Linux for Absolute Beginners with some more important commands of Linux.

Let's start it...

Files and Directories Commands:

Top/All Files and Directories Commands
Top/All Files and Directories Commands

  1. cat command: It is known as the most commonly used command in Linux/Unix. This command is used to create single or multiple files, allows us to view the content of a file, concatenate files and redirect output in terminal or files. It is short of concatenate.
  2. LPR  command: This command is used to submit the files for printing. It sends the file name to the named printer or the default printer if no destination is given. If the file name is not there on the command line, it reads the print file from the standard input.
  3. cd command: Stands for "Change Directory". This command is used to change the current working directory. It is the most commonly used command in Linux Terminal.
  4. lprm command: This command is used to cancel the jobs that have been queued for printing. If no argument will pass, it will cancel the current job on the default destination. You can also specify one or more job IDs to cancel the jobs.
  5. chgrp command: This command is used to change the group ownership of a file or directory. In Linux, all the files or directories are referred to an owner or group. You can also set the owner of the file or directory by using the "chown" command.
  6. ls command: This command allows us to view the list of files or directories in a file or directory. This command will also show you the details of a file or directory.
  7. chmod command: This command allow us to control exactly who can read, edit or run your files and who cannot. chmod is an abbreviation for changing the mode.
  8. mkdir command: Stands for  "Make Directory". This command is used to create files or directories. You can create multiple files or directories and permissions at a time.
  9. cp command: Stands for "Copy". It is commonly used to copy files, groups of files, or directories. It creates the exact same picture of the file or directory on the disk.
  10. more command: This command is used to view the text files in the command prompt. It displays one screen at a time if the size of the file is large(for example, log files). It will also allow you to scroll up and down so that you can view the text of a file. 
  11. file command: This command is used to determine the type of file. File type can be human-readable(e.g., ASCII), MIME type (e.g., text, plain). This will also check the file is empty or a special category file. It tests each argument in an attempt to configure the type of file. 
  12. mv command: Stands for "Move". This command is used to move the file or directory into another file or directory. You can also use it to rename files or directories. 
  13. find command: This command is a command-line utility for walking a file hierarchy. It is also used to find the files or directories in the Linux Terminal. You can also use the properties of a file or directory for searching it, properties like name, creation date, owner, or permissions.
  14. pwd command: It stands for "Print Working Directory". It is used to check the current working directory. 
  15. grep command: This command is used for searching the file of a particular pattern of characters and displays all the lines of a pattern. 
  16. rm, rmdir command: This command is used to remove the file or a directory. These are both commands that are very powerful and have very few options. 
  17. head command: This command prints the data of a file or directory. By default, it prints the top 10 lines of a file. If we provide more than one file name then data from each file will be preceded by its file name.
  18. tail command: This command prints the data of a file or directory from the end of it. By default, it prints the last 10 lines of a file. As we know, the new data is always added to the end of the file so, the tail command is a quick and easy way to find the most recent file or directory.
  19. touch command: This command is used to create, change and modify the timestamps of a file or directory. Actually, there are two different commands for creating files. One is the cat command but it is used to create the file with the content.
  20. lpq command: This command displays the contents of a printer queue. It shows the report of the job by specified the job. 


#Penetration Testing Tutorial for Absolute Beginners

#Technical Tools Explanation

#Linux for Absolute Beginners in Hindi

1. Introduction of New Blog in Hindi


Post a Comment

0 Comments

Ad Code