lunix 3
lunix 3
Licence
Plan
• Linux Installation Methods
• Virtual Installation
– Virtualization
– VirtualBox
– Installing VirtualBox
• Direct Installation of Linux
– What is Direct Installation?
– When to Use Direct Installation?
– Requirements
– Installing Ubuntu : Steps
Introduce the
required Info
2. Start UNetbootin
Licence
Plan
• Introduction
• Overview of a Linux Shell
• Shell Commands :
– File and Directory Management
– Linux Text Editors
– Process Management
– Installing/Uninstalling softwares
walnut’s shell
Directory Description
/ Root directory, the top-level of the system.
/home/ User home directories (e.g. /home/user).
/bin/ Essential binaries (commands like ls, cp, mv).
/etc/ System configuration files (e.g. /etc/passwd).
/tmp/ Temporary files.
/dev/ Device files (USB, hard drives).
/proc/ Virtual filesystem for process management.
Boot-related files, including the Linux kernel and GRUB
/boot/
bootloader.
Command Description
ls List files and directories.
cd Change the current directory.
pwd Show the present working directory.
mkdir Create a new directory.
rmdir Remove an empty directory.
rm -r Remove a directory and its contents.
cp Copy files or directories.
mv Move or rename files and directories.
touch Create an empty file.
find Search for files and directories.
Command Description
ps Displays the list of running processes
top Displays real-time system information (CPU, memory)
kill Terminates a process by its ID (send signal to processes)
nice sets the priority when starting a new process
renice changes the priority of an already running process.
$– top
Key Columns in top:
– Key columns
• PID → Unique process ID.
• USER → The system user who owns the process.
• PR → Process priority (lower number = higher priority).
• NI → Niceness value (negative = higher priority, positive =
lower).
• %CPU → Percentage of CPU used by a process.
• %MEM → Percentage of memory used.
• VIRT → Total virtual memory used.
• RES → Resident memory (physical RAM used).
• SHR → Shared memory used (in KB).
• TIME+ → Total CPU time since the process started.
• COMMAND → The command that initiated the process.
$ kill -9 <PID>
Others