Shuvankar Paul Software Engineer, Strativ AB Magento eCommerce Website Development, Website Development Using Php and HTML and Cross-Platform application development using Appcelerator.

Most used Shell Command

28 sec read

Most used command related to Directory

CommandDescription
cd –Go to the last directory.
Most Common used Directory Related Command

Empty a file/ delete content of a file

# > filename
---------------
# : > example.log
OR 
# true > example.log
--------------
OR
# cat /dev/null > access.log
--------------
OR
# cp /dev/null access.log
---------------
# echo "" > access.log
OR
# echo > access.log
----------------
# truncate -s 0 access.log

Note : Taken from : https://www.tecmint.com/empty-delete-file-content-linux/

Copy all the lines to clipboard

  • CTRL+A means “Mark the entire file.
  • CTRL+C means “Mark the entire file.
  • ESC means “De-select, so your next key press doesn’t replace the entire file 🙂

Note : This will only copy the visible part in terminal

Check Port and Service in Unix

sudo lsof -i -n -P | grep TCP
sudo netstat -tulpn | grep LISTEN

Shuvankar Paul Software Engineer, Strativ AB Magento eCommerce Website Development, Website Development Using Php and HTML and Cross-Platform application development using Appcelerator.

How to use jMeter on MacOS M1 Chip

ArM Based process M1 have some issue Java. So firstly you need to download from Azul Then download jMeter https://jmeter.apache.org/download_jmeter.cgi now go to then...
Shuvankar Paul
9 sec read

RabbitMQ in PHP

Port 15672 vs 5672 Port 15672 for rabbitmq web interface.Port 5672 for rabbitmq client.
Shuvankar Paul
2 sec read

MySQL or MariaDB Mysqldump Single, Multiple & All Database…

According to MySQL official Documentation : The mysqldump client utility performs logical backups, producing a set of SQL statements that can be executed to reproduce the original...
Shuvankar Paul
41 sec read

Leave a Reply