Commandos Prac 2
Commandos Prac 2
Commandos Prac 2
1.Linux system
Commands Used
4. man – Opens the manual for a command or directory, offering detailed explanations.
5. cat, more, or less – To view text files (especially configuration files in /etc).
The /etc directory contains system-wide configuration files and shell scripts that are used to boot,
start, stop, and configure system settings. Examples include network configurations, user
accounts, and various services.
Common files:
/bin holds essential user command binaries (executable files) that are required for system
operation in single-user mode. These commands are used for system recovery, maintenance, or
during boot-up. Examples of binaries stored here include basic commands like ls, cp, mv, bash.
Example: ls /bin to list commands like ls, echo, mkdir, cat, etc.
Mushoro Ruzani
/usr contains user-installed software and libraries, and it's generally where larger packages reside,
along with their dependencies.
Example: ls /usr/bin to see more command binaries like python, gcc, etc.
The /home directory is where all user personal directories are stored. Each user has a
subdirectory under /home where their personal files, configuration settings, and documents are
saved. For example, the home directory for user john would be /home/john.
Purpose: This is the main directory where the Windows operating system is installed. It contains
critical files for system operations, configuration, and libraries.
Key Subfolders:
System32: Contains essential system files and libraries (DLLs) necessary for Windows to
function.
Mushoro Ruzani
WinSxS: Stores multiple versions of system files (side-by-side assemblies) to support different
applications.
2. C:\Program Files
Purpose: This directory is where most applications installed on the system store their files. It is
the default location for 64-bit programs.
Key Subfolders:
Each installed program typically has its own folder where its executable files, libraries, and other
necessary data are stored.
Common Files: Shared libraries and resources used by multiple programs are stored here.
Purpose: This directory is for 32-bit applications on a 64-bit version of Windows. It separates
32-bit apps from 64-bit apps to prevent compatibility issues.
4. C:\Users
Purpose: This folder contains user-specific data and files. Each user has their own directory
here, where personal settings, documents, and application data are stored.
Key Subfolders:
Mushoro Ruzani
Desktop: Stores files and shortcuts that appear on the user's desktop.
AppData: Contains user-specific application data and settings, further divided into Local,
LocalLow, and Roaming subfolders.
5. C:\ProgramData
Purpose: This is a hidden directory that contains data shared between all users on the system.
Applications store data here that isn’t user-specific, such as configuration files.
6. C:\Temp
Purpose: This is where temporary files are stored. The system and applications use this directory
for temporary data that is no longer needed once the task is completed.