In this modern world which is at the peak of technology and fast access work, we cannot depend upon outdated open-source software. Nowadays, many people are using windows many are using Mac, but we cannot forget the time we all use LINUX.
Linux is a family of free and open-source software operating system built around the LINUX KERNEL. Linux was originally developed for personal computers based on Intelx86 architecture but has since been ported to certain more platforms rather than any other operating system.
Linux development is one of the eminent examples of free and open-source software. The source code can be used, distributed commercially and non commercially by anyone under the terms of its respective license such as GNU, General Public License.
Today, the Linux system is used throughout computing from root computers to supercomputers. Linux was spreading and becoming popular in the netbook market, with customized Linux installed. Linux communities design and distribute the Linux Kernel, with additional package management as Linux distribution. A Linux based system is a Unix-like operating system obtaining much of its design from its principles designed in the 1970s and 1980s.
Also Read: How To Create Backdoor In Kali Linux
A GNU is a key part of the most system based on the Kernel version, Android being a noteworthy exception. The user interface is either a command-line interface, a graphical user interface or control attached to associated hardware which is common for basic systems. Although the CLI is available through terminal emulator windows or on a separate virtual console.
Several types of Window managers exist for X11, tiling, dynamic, stacking and composting.
There are so many Linux commands on which we can operate Linux. Each command has its specific function and the reason behind it. For Example – for searching, process management there are different commands.
- ls- Is used for Directory listing.
- ls –al- Is used for Formatted listing with hidden files.
- ls –lt- Is used for Sorting the Formatted listing by time modification.
- cd dir – It is used to Change directory to dir.
- cd- It is used to change to the home directory.
- pwd- It Shows the current working directory.
- mkdir dir-Is used for Creating a directory dir.
- cat >file- Places the standard input into the file.
- more file-Output the contents of the file.
- head file- Output the first 10 lines of the file.
- tail file -Output the last 10 lines of the file.
- tail -f -file Output the contents of the file as it grows, starting with the last 10 lines.
- touch file-It is used to Create or update file.
- rm file- It is used for Deleting the file.
- rm -r dir-It is used for Deleting the directory.
- rm -f file- Force to remove the file.
- rm -rf dir- Force to remove the directory dir.
- cp file1 file2- It is used to Copy the contents of file1 to file2.
- cp -r dir1 dir2- It is used Copy dir1 to dir2;create dir2 if not present .
- mv file1 file2- It is used to Rename or move file1 to file2 if file2 is an existing directory.
- ln –s file link- It Create a symbolic link to file.
Linux Commands For Process management:
- ps- It is used to display the current working processes.
- top- It Display all running process.
- kill pid- Kill the process with given pid.
- killall proc-Kill all the process named proc.
- pkill pattern-Will kill all processes matching the pattern.
- bg-List stopped or background jobs, resume a stopped job in the background.
- fg -Brings the most recent job to the foreground.
- fg n -Brings job n to the foreground.
Linux Commands For File permission:
- chmod octal file-Change the permission of file to octal, which can be found separately for the user, group, the world by adding,
- 4-read(r) .
Linux Commands For Searching:
- grep pattern file- Search for the pattern in the file.
- grep -r pattern dir- Search recursively for a pattern in dir.
- command | grep pattern- Search pattern in the output of a command.
- locate file- Find all instances of the file.
- find-name filename Searches in the current directory (represented by a period) and below it, for files and directories with names starting with the filename.
- pgrep pattern -Searches for all the named processes, that matches with the pattern and, by default, returns their ID.
Linux Commands For System Info:
- date- Show the current date and time.
- cal- Show this month’s calendar.
- uptime -Show current uptime.
- w Display -who is online.
- whoami -Who you are logged in as.
- finger user Display information about the user.
7. uname -a Show kernel information
- cat /proc/cpuinfo -Cpu information.
- cat proc/meminfo- Memory information.
- man -command Show the manual for a command.
- df -Show the disk usage.
- du -Show directory space usage.
- free -Show memory and swap usage.
- whereis app -Show possible locations of the app.
- which app- Show which applications will be run by default.
Linux Commands For Compression:
- tar cf file.tar file -Create tar named file.tar containing the file.
- tar xf file.tar- Extract the files from file.tar.
- tar czf file.tar.gz files- Create a tar with Gzip compression.
- tar xzf file.tar.gz -Extract a tar using Gzip.
- tar cjf file.tar.bz2 -Create tar with Bzip2 compression.
- tar xjf file.tar.bz2- Extract a tar using Bzip2.
- gzip- file Compresses file and renames it to file.gz.
- gzip -d file.gz Decompresses file.gz back to file.
Linux Commands For Network:
- ping host- Ping host and output results.
- whois domain- Get whois information for domains.
- dig domain Get DNS information for the domain.
- dig -x host- Reverse lookup host.
- wget file -Download file.
- wget –c file- Continue a stopped download.
- ctrl+c -Halts the current command.
- ctrl+z -Stops the current command, resume with fg in the foreground or bg in the background.
- ctrl+d -Logout the current session, similar to exit. 4. ctrl+w -Erases one word in the current line.
- ctrl+u -Erases the whole line.
- ctrl+r- Type to bring up a recent command.
- !! -Repeats the last command.
- exit- Logout the current session.