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.

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

The websites that you can keep in your reading…

Global Technology Market Analyst Firm https://www.canalys.com
Shuvankar Paul
1 sec read

Common Magento 2 XML Related Issue

Magento 2 Layout not Updated on Fronted Note : If you don’t found any logical error then, there will be a issue like when...
Shuvankar Paul
20 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *