Basics of linux
Table of contents
Linux is an open-source, Unix-like operating system kernel that serves as the foundation for various operating systems, collectively known as "Linux distributions" or "Linux distros."
Features of Linux:-
Open Source:
Linux is open-source software, which means the source code is freely available to the public. This open nature fosters collaboration, innovation, and transparency.
Multi-Platform Support: Linux is highly portable and runs on various hardware architectures, from personal computers to embedded systems, servers, and supercomputers.
Stability:
Linux is known for its stability and reliability. It can run for extended periods without the need for frequent reboots, making it ideal for critical systems.
Security:
Linux provides robust security features, including user and group permissions, mandatory access controls, firewalls, and encryption, making it a secure choice for sensitive applications.
Multitasking:
Linux supports multitasking, allowing multiple processes to run concurrently. This feature is essential for efficiently managing system resources.
Multi-User Support:
Linux is inherently multi-user, enabling multiple users to work on the same system with appropriate access controls. User accounts and permissions ensure security and privacy.
File System:
Linux uses a hierarchical file system organized in a tree-like structure. The root directory is represented by '/', and it follows a Unix-like model for data organization and management.
Basic Commands of Linux:-
pwd -To check your current working directory.
ls -a - List all the files or directories including hidden files.
touch [filename] - To create an empty file.
mkdir [directory] - To create a new directory.
cp [source] [destination] - To copy files or directories.
mv [source] [destination] - To move or rename files and directories.
rm [file/directory] - To Remove files or directories.
chmod [permissions] [file]- To change file permissions.
chown [user]:[group] [file]-To change file ownership.
chgrp [group] [file]- To change file group.
find [directory] -name [filename]: To search for files in a directory.
grep [pattern] [file]- To search for text patterns in files.
ps- To list running processes.
top - To monitor system resource usage.
kill [process_id]-To terminate a process.
uname -a- To display system information.