Category: scripting

Handy commands for working with server using terminal

1- This is to see ports and which application is running on which port sudo netstat -plunt 2- To restart apache server sudo service apache2 restart or /etc/init.d/apache2 restart 3- To check firewall status sudo ufw status verbose 4- To change port listen on Apache server vi /etc/apache2/ports.conf 5- To make new site for Apache …


Linux Commands [Author’s experience]

1.Format SD card $ df $ sudo umount /dev/sdc1 $ sudo mkfs.vfat -n ‘Ubuntu’ -I /dev/sdc1 http://www.unixmen.com/how-to-format-usb-drive-in-the-terminal/ 2. Unzip $ unzip file.zip http://askubuntu.com/questions/86849/how-to-unzip-a-zip-file-from-the-terminal 3. Write to SD card/driver $ sudo dd if=<name>.bin of=/dev/sdx bs=4M;  sync https://wiki.linaro.org/Boards/MX6QSabreLite 4. Decompress tar.gz $ tar -xzvf advancemame-1.2.tar.gz  http://www.element14.com/community/community/designcenter/single-board-computers/sabrelite/blog/2014/04/09/using-advance-mame-to-play-arcade-style-games-on-sabre-lite-imx6 5. Extract tar.xz $ tar -xvfJ advancemame-1.2.tar.xz http://stackoverflow.com/questions/12298368/how-to-extract-tar-xz-files-in-linux 6. Copy/paste from and to …