Linux
Linux
• Unix is a powerful operation system that supports multiple users and multitasking.
• It was developed in the late 1960’s at Bell labs by Ken Thompson, Dennis Ritchie.
• Linux was created as a free and open alternative to Unix.
It was developed by Linus Torvolds in 1991
• Define Linux?
• Linux is an open source OS that is based on Unix Architecture. It is free to use,
modify & distribute. It was developed by Linus Torvolds in 1991.
Features of Linux.
• 1. Open Source
• 2. Multitasking
• 3. Multi user support
• 4. Portability
• 5. File system Support.
• 6. Linux provides both CLI & GUI
• 7.Shell and scripting support
Architecture of Linux.
Linux Command: These are the simple text instructions used to control the computer
through CLI.
Special Characters in command: Special characters in linux are used to modify
command behavior & enhance functionality.
Some common special characters include.
• 7. mv (Move/Rename):
• Moves files or directories, or renames them.
• Example: mv old_name.txt new_name.txt renames a file.
• mv file.txt new_directory moves the file to a different location.
• 8. rm (Remove):
• Deletes files or directories.
• Caution: rm can permanently delete files and directories, so use it with care.
• Example: rm file.txt deletes the file "file.txt".
File Related commands.
• These commands allows users to create, view, modify, copy, move, delete &
manage files efficiently.
• ls: Lists the contents of the current directory in a short format.
• ls [directory]: Lists the contents of the specified directory.
• ls -a: Lists all files and directories, including hidden ones (those starting with a
".").
• ls -l: Lists files and directories in a long format, providing detailed information
like permissions, owner, size, and modification time.
• ls -R: Lists the contents of a directory recursively, including all subdirectories and
their contents.
• ls -t: Lists files and directories in order of last modified time.
• ls -h: Displays file sizes in human-readable format (e.g., KB, MB, GB).
Cat- Command,
• The cat command in Linux is used to read, concatenate,& displays the content of
files.
cp-Copying Files and Directories.
Command Description
Command Description
Command Description