FIle and folder commands in Kali linux

Basics of ethical hacking




1.  Where is file command Linux?
      In Linux, the find programme scans the whole directory hierarchy beneath /var/www/ for files that end in. html.

2.  How do I view a file in Linux?

  • cat command.
  • fewer commands
  • more command.
  • gnome-open or xdg-open (generic version) or kde-open (kde version) — Open any file with the Linux gnome/kde desktop command.
  • open command – This command is exclusive to OS X and can be used to open any file.

3.  How does file command work?

   The file command determines a file's type, which can be human-readable (e.g. 'ASCII text') or MIME (e.g. 'text/plain; charset=us-ascii'). This command evaluates each argument in order to classify it.

4. What is the purpose of file commands?

   The most common file commands are:
  • Open: Opens a file for editing without changing its name.
  • Close: Closes an open file.
  • Save: Saves changes to the current document.
  • Save As: Saves changes to the current document in a different filename.
  • Print File: Prints the contents of the current document or all documents in it to the specified printer.

5.  How do I navigate to a folder in Linux? 

  • Use "cd /" to go to the root directory. 
  • Use "cd.." to go up one directory level. 
  • Use "cd -" to go back to the previous directory (or forward).

6.  What are folder commands in linux?

   Linux is a Linux-based operating system for computers. It is the most widely used operating system in the world.

7.  What are the different types of folders in Linux?


  •  Different types of folders in Linux are explained below:Desktop folder: The desktop folder is the default location for files on the computer. It contains folders like Documents, Pictures, Music and Downloads.
  • Home folder: The home folder is where all your personal files are stored. You can create multiple user accounts in Linux and each account has its own home folder where you can store your personal data such as documents, pictures, music and downloads.
  • Music Folder: The music folder contains all of your music files such as MP3s and WAVs without any sub-folders or sub-directories inside it.

Previous Post Next Post