Knowledgebase: Shared Hosting
The most popular Linux/Unix commands for directory management
Posted by Modestas J on 17 February 2012 02:40 PM

The whole thing in UNIX and Linux is completely depend on the file organism. The file organism is totally comprised of different directories. The root index ("/") is the stand of the file management system. A number of directories can be on diverse separations or drives, other than they are at rest a fraction of the file management system. A number of directories can also be on wholly different systems, possibly working an absolutely different computer operating structure, other than they are at rest division of the file management system. What pursues is the record of several of the additional normally originates directories in the Linux directory management system. The entire directories are not incorporated on the entire systems:

  • / this is the basic root directory
  • / bin / and / usr / bin / store up the user commands.
  • / boot / holds files utilized for the startup of the system counting the kernel.
  • / dev / holds the mechanism files
  • / etc / is the system files and the directories are situated.
  • / home / is completely default position for the users the home directories.
  • / initrd / is utilized to consignment necessary machine modules and increase the initrd.img picture file throughout system establish.
  • / lib / or / usr / lib / contains library files utilized by the programs in / bin / or / sbin /.
  • / lost + found / contains all the files without any names originate by the fsck
  • / mnt / contains the mount positions for the file systems which were mounted later than booting process.
  • / opt / is utilized mainly for installation and un-installation of the third party applications. Contains elective files, directories and applications.
  • / Proc / is the effective directory and not really store on the drive, that contains system detail necessary by assured programs.
  • / root / is the home directory for the super user named root
  • / sbin / and / usr / sbin / amass the commands of the system.
  • / tmp / is the temporary directory. The entire users have read and write admission to / tmp/.
  • / usr / holds files connected to users like program files and connected library files
  • / var / it is kind of variable which contains the files and the directories which are continually altering like printer spool as well as the log files.

The additional important Linux and UNIX commands for the directory management system are:

  1. Apropos: Investigate what is record for the files holding the exact strings.
  2. bdflush: this is the Kernel daemon which keeps the unclean buffers in the disk memory.
  3. cd: to change the present directory. Without arguments cd alters to the home directory of the users.
  4. Chmod : chmod <requirement> <name of the file> - Result: modify the permissions of the file.
  5. Chown : chown  <holder1> <name of the file> Result: modify the possession of the file to holder1.
  6. Chgrp : chgrp <cluster1> <name of the file> Result: modify the group.
  7. Cksum : Execute a check sum as well as count the total bytes in the file.
  8. Cp : cp <basis> <target> Copy the file from one place to another place.
  9. Dd : change and copy the file format as per the alternatives. Drive or database repetition.
  10. Dir : complete List of the directory.
  11. Dircolors : for set the colors.
  12. File : Establish the type of file. Even can tell kind of the library.
  13. Find : find the $ Home, name readme search for the readme initial at home as well as full path output.
  14. Install : Copy numerous files as well as set the attributes.
  15. Ln : create the links among files.
  16. Locate : the complete file locating curriculum which utilizes the slocate record.
  17. Losetup : the Loop back mechanism setup.
  18. Ls : List of the files. Alternative -a, for all lists.
  19. Mkdir : Making the directory.
  20. Mknod : Create a mass or quality special file.
  21. Mktemp : Create the provisional filename.
  22. Mv : Shift or rename the file. Syntax: mv <basis> <target> for example: mv <name of the file> directory name / new file name
  23. Pathchk : for check the name of the file are applicable or portable.
  24. Pwd : Produce or register the functioning directory with complete path
  25. Rm : for example: rm .* - Result: Delete the all system files
  26. Rmdir : rmdir <name of the directory> - for Remove the particular directory. But for this the directory has to be empty.
  27. Slocate : Offers a protected method to directory the files and look for them. It makes a record of the files on the system.
  28. Stat (1u): Utilized to print the inode detail on the file.
  29. Sum : Checksum and count the blocks in a file.
  30. test: Make sure the types of the file and evaluate the values.
  31. Touch : Modify file time stamps to the existing time. Create the file in case it not exist.
  32. Update : the kernel daemon to wash out the dirty barrier back to drive.
  33. Vdir : the complete contents list directory.
  34. Whatis : Look for the whatis record for absolute words.
  35. Wheris : Situate the binary, foundation and main page files for the command.
  36. Which : Demonstrate the complete path of the commands where known commands exist in.

The Best Web Hosting

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako Fusion