CHEAT SHEET FOR UNIX
Introduction–Cheatsheet for UNIX
UNIX is a group of multi-user and multifamily operating systems that
In this Cheat sheet for UNIX article, we will discuss what UNIX is and the different UNIX commands.
Cheat sheet for UNIX Commands and Content:
UNIX commands can often
UNIX commands | |
FILE | |
ls | To list the directory. |
pwd | To show the current directory. |
cp f1 f2 | To copy file f1 to file f2 |
mv f1 f2 | To move file f1 to file f2 if there |
rm f1 | To delete a file named f1 |
rm | To remove a file forcefully |
rm | To delete a directory named dir |
rm | To forcefully remove a directory named dir |
rm | To forcefully remove a file named f1 |
touch file | |
To print the contents of a file as output | |
To print the contents of the first 10 lines of the file as output | |
tail file | To print the contents of the last 10 lines of the file as output |
PROCESS COMMANDS | |
ps | To display all the |
To kill the process with the mentioned process id as pid | |
To bring the recently running job to foreground | |
bg | To list all the current background running processes or jobs |
top | To display all the running processes. |
NETWORK | |
ifconfig | To list down all the network-related details such as all the assigned IP |
To list down all the ongoing connections in the local system and the details of ports being listened to and the services those are waiting for requests. | |
nslookup | To query the DNS lookup and find the related details. |
hostname | To know the details of the |
SEARCHING | |
find | To search the files in the directory specified. |
grep | To search the selected lines in all the files that match the |
To search for the pattern in given lines. | |
To search the pattern recursively for the pattern in a including the line number. | |
To search the pattern recursively for the pattern in | |
command | | To search for the pattern in the |
Locate file | To find all the instances of the file using an index-based system of the database that |
Find file | To find all the occurrences of a file in the real system file directory. |
TIPS & TRICKS OF USING CHEAT SHEET FOR UNIX COMMANDS:
1. The UNIX operating system has a kernel that is the core part of the system that coordinates the entire functionalities to perform different operations.
2. It has a Shell that processes the utility requests by interpreting the UNIX commands provided in the terminal by the user.
3. The entire data in the cheat sheet UNIX
4. The login command will
5. Shell Scripting is the way of programming that is being carried on cheat sheet UNIX to execute the shell scripts (a series of commands) by the Kernel in UNIX Operating System.
6. The file system security in UNIX
7. There are different commands for access rights of a user in a UNIX system.
Post Your Ad Here
Comments