In Linux, utilities like ls
, cp
, and mv
can be found in multiple directories due to the presence of different versions or implementations across various packages. For example, ls
may exist in both /bin/
and /usr/bin/
, or you might find alternative implementations like coreutils
or busybox
in different locations. This redundancy can occur in systems with multiple installed packages or environments, such as Docker containers or chrooted environments. To identify these utilities, the which
or whereis
commands can be helpful.
The root directory is usually /.
In Linux, the utility used to display the pathname of the current working directory is the pwd command, which stands for "print working directory." When executed, it outputs the full path of the directory you are currently in. This command is commonly used in terminal sessions to confirm your location within the file system.
Vi
The /, or root directory.
The Linux Filesystem Hierarchy is used to help determine the file structure in the Linux Operating System. It defines the Directory structure and directory contents.
utilities is nothing but predefined commands in linux
Var directory is a sub directory of the root directory, The system writes data during process of its operation.
For linux file system creation there are many utilities.Example commands and utilities to create partitions:fdiskcfdiskcgdiskpartedGPartedFile system types:NTFSextext2ext3ext4swapfatbtrfs...All basically does the same with slight added or reduced functionality
Linux is just the kernel. If you combine utilities that were made as a result of the GNU project with the linux kernel, you get GNU Linux, which is considered as a complete operating system
/var/log
Software that includes an operating system as well as utilities is called an operation system package. Two examples of this type of software system are Windows and Linux.
Many distributions have documentation or builtin graphical installation utilities.