man- If you get stuck anywhere use thisman<space>commandwhere you can access the manual of the particualar command!
- OS info is a general term that refers to information about the operating system (OS) running on a computer
lsb_release -acat /etc/os-releaseuname -alscpulsmem
- Syslog is a standard protocol used for collecting and storing log messages generated by various system components, applications, and network devices.
find / -name 'syslog'cd /var/log->cat syslog->cat syslog | less(this is used for better representation of logs).
- Creating a new user in Linux involves setting up a unique account for a specific individual to access the system.
useradd -D- This command tell us the information which is defaut for all users.useradd -m <space> username- This command will create a new user.passwd <space> username- This command will help you to setup password to the particular user. -usermod -aG sudo username- This command will add your particual user to sudo group which will help you to run command as root user.su - username- This command will switch to the particular username.
- Groups in Linux are essentially collections of users. They're a fundamental part of the operating system's permission structure, making it easier to manage access to files and system resources.
groupadd <space> groupname- This command will help you to create a new group.getent group groupname- This command will help you to get information of that particualar group.sudo -aG groupname $USER- This command will add user to the specific group
touch file1- Create file1cat file1 file2- Concatinate file and provide ouput.less file1- View and paginate file1file file1- Get type of file1cp file1 file2- Copy file1 to file2mv file1 file2- Move file1 to file2rm file1- Delete file1
pwd- Show current directorymkdir dir- Make directory dircd dir- Change directory to dircd ..- Fo up a directoryls- List files
-a- Show all files-R- Recursive list-r- Reverse Order-t- Sort by last modified-S- Sort by file size-l- Long listing format-1- One file per line-m- Comma-seperated output-Q- Quoted output