Updating the package lists with apt update ensures that you're installing the latest version of jq available in the repositories configured on your system. Even though you might have run apt update a month ago, new versions of packages could have been released since then. However, if you're confident that the package lists are up-to-date and you're okay with potentially not getting the latest version of jq, you can skip the apt update step. In many cases, it's good practice to ensure your package lists are current to avoid potential issues with outdated package information.
-
netstat -ltnp | grep -w ':80' --> for checking ports
-
scp -rv [email protected]:/home/rohit.pawar/rohit ./ ---> server copying things
-
cp -rv source destination
-
mv -rv source destination
-
rm -rv place* -- > for removing and * for all files with particular prefix will be removed
-
apt-get install
-
apt-get update
-
sudo su
-
tar -czvf file.tar.gz directory --------------------------One can extract files in a given directory such as /tmp/:-----------------------------------
-
tar -xzvf projects.tar.gz -C /tmp/ https://www.cyberciti.biz/faq/how-to-create-tar-gz-file-in-linux-using-command-line/
-
diff filename > finame2
-
nano
-
vi
-
touch
-
mkdir
-
telnet
-
sudo fuser -k 9443/tcp : for Killing the particular process and freeing up it.
-
Ctrl + r multiple time on the terminal for : It is used for searching in the terminal for already run cmd
-
ssh user@ip : tunneling, reverse-tunneling .
-
wget link(which directly downloads file/zip so this thing automatically installs it local).
-
ps aux | grep java : It is used view all process and then grep will filter out the process which is involving java
-
ps aux
-
tail -F ../file.name
-
move
-
nslookup
-
ls -all