Skip to main content

Magento 2: Putty Commands

cd - change directory

cd ..    - come out of one directory

pwd        -    Path of my current directory

wget - get downloadable data

unzip filename.zip -d /pictures  - for unzip data and -d for directory

unzip -l filename.zip  -  list all files from a .zip file

unzip filename.zip filename.txt  -- extract / unzip certain file from a .zip file

zip -r filename *  -   zip up an entire directory including all sub-directories

zip -r example2.zip *  -  zip all files in current directory

rm -rf *    -    delete all files in directory

rm -rf foldername/  -  To delete a whole folder and its content

mysql -u user_name -p database_name< advomate_pompusalive.sql  ------ for import DB

mysqldump -u username -p  database_to_be_exported > db_file_name.sql  ------   for export DB

yum install zip unzip -y     -   if zip/unzip not working

sudo yum install mysql

find . -name myFile.txt

find . -name "myFile*"


Change Admin Path - php bin/magento setup:config:set --backend-frontname="admin_path"

Admin User Create Command - php bin/magento admin:user:create --admin-user='admindk' --admin-password='welcome@123' --admin-email='param.octopus@gmail.com' --admin-firstname='DK' --admin-lastname='Octopus'



Comments

Popular posts from this blog

Magento 2: Category list for custom magento system configuration section ( Backend )

In system.xml file field for multi select of category is like: NOTE: Use Select for Single item and multiselect for multiple in - <field id = "bannerlist" translate = "label" type = " multiselect " <group id = "bannerblock_setting" translate = "label" type = "text" delault = "1" sortOrder = "3" showInDefault = "1" showInWebsite = "1" showInStore = "1" > <label> Setting </label> <field id = "bannerlist" translate = "label" type = "multiselect" sortOrder = "10" showInDefault = "1" showInWebsite = "1" showInStore = "1" > <label> Select Category </label> <!-- <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>--> <source_model> Ipragmatech\Bannerblock\Model\Config\Source\C...

Magento2: How to install custom theme in magento 2

magento2 | _ app | _ design | _ frontend | _ Custom | _theme | _Magento_Theme | _templates | _root . phtml - Copy of Luma | _registration . php | _theme . xml     Your path for registration.php is app\design\frontend\Custom\theme\registration.php   <? php \Magento\Framework\Component\ComponentRegistrar :: register ( \Magento\Framework\Component\ComponentRegistrar :: THEME , 'frontend/Custom/theme' , __DIR__ );       app\design\frontend\Custom\theme\theme . xml   <theme xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation = "urn:magento:framework:Config/etc/theme.xsd" > <title> Custom Theme </title> <parent> Magento/luma </parent> <media> <preview_image> media/preview.jpg </preview_image> </media...