Ethical Hacking for Beginners (Chapter-5)

Cyber security certification

Linux Commands Part-2

In the previous chapter, we learned about some Linux commands which are mostly used as shortcuts. But in this chapter, we will discuss some Linux commands which are terminal based. There are so many apart from these which we will discuss during the next chapters. But these are the commonly used and most important ones.

Here are some useful Linux Commands:-

 

Directory Commands:-

sudo:- superuser is the most important Linux command used to get superuser(System Admin) permission.
apt-get:- used to install/ update/ upgrade/ remove any software package or the entire operating system. The most powerful command for front-end package manager for Linux.
pwd :- Used to display the current working directory
cp:- used to copy a file
chmod:- used to change the mode of a file system
cat:- used to concatenate files and view the result in terminal
echo:- used to display a text or a string as an output.
clear:- used to clear the terminal screen
mkdir:- This command used to create a new directory under any directory
rmdir:- Used to delete a directory.
ls:- This command is used to display a list of content of a directory. 
log:- used to check the log
cd:- Used to change the current directory.
history:- used to see the previously used command by a user
grep:- used to find text in a file
reboot:- used to reboot the system.
touch:- used to make a blank new file.
locate:- used to locate a file
df:- used to check the system disk space usage.
head:- used to check the first line of any text file
tail:- used to check the last line of any text file.
chown:- used to change the ownership of a file.
jobs:- used to check the currently running jobs with their statuses.
kill:- used to terminate any program manually.
ping:- used to check your internet connectivity status.
ifconfig:- used to check your internet configuration along with your IP and other info. It's a very useful and most important command.
zip/unzip:- used to compress/ decompress (zip/unzip) a file


ls command:-

-a:- show all including hidden
-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-separated output
-Q:- Quoted output

wc command:-

Used to count words
wc -c : Displays the count of bytes in a file.
wc -l : Prints the number of lines in a file.
wc -L : prints only the length of the longest line in a file.
wc -m : prints the count of characters from a file.
wc -w : prints the number of words in a file.

In the upcoming chapters, we will discuss some basic networking 

concepts. Till then Happy Learning!.

0 Comments:

Post a Comment

Contact

Contact Me

I am open to hire. If you like my work, feel free to contact me. And also if you have any query, suggestions or complaint you can contact me too. Just fill up the form or DM me, and i'll get back to you asap.

Work Time:

Monday - Sunday from 11am to 11pm