Skip to content

Instantly share code, notes, and snippets.

@dasbairagya
Last active August 11, 2019 15:22
Show Gist options
  • Save dasbairagya/8ce94f132e56f4c899d3ea8a6f192cee to your computer and use it in GitHub Desktop.
Save dasbairagya/8ce94f132e56f4c899d3ea8a6f192cee to your computer and use it in GitHub Desktop.
Some useful Linux commands
USEFULL COMMANDS-------------------------------------------------
๐Ÿ˜Ž๏ธ man ls [to get the all info with the ls command]
q [ to quit the man command]
๐Ÿค”๏ธ gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize' [ minimize item on click from dock menu]
๐Ÿคฉ๏ธ ln -s /opt/lampp/htdocs ./Desktop [create soft link-shortcut of htdocs to desktop]
๐Ÿค”๏ธ gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize' [ minimize item on click from dock menu]
๐Ÿ‘‰๏ธthird party directory: /etc & /usr/share
๐Ÿ‘‰๏ธLamp Service Commands-------------
๐Ÿ“Œ๏ธ sudo systemctl status apache2
๐Ÿ“Œ๏ธ sudo systemctl restart apache2
๐Ÿ“Œ๏ธsudo service apache2 restart
๐Ÿ‘‰๏ธ Install Sticky Notes-------------------------------------------
๐Ÿ“Œ๏ธ sudo add-apt-repository ppa:umang/indicator-stickynotes
๐Ÿ“Œ๏ธ sudo apt-get update
๐Ÿ“Œ๏ธ sudo apt-get install indicator-stickynotes
๐Ÿ‘‰๏ธ Install cheese-------------------------------------------------
๐Ÿ˜Ž๏ธ sudo apt-get install cheese ๐Ÿ•ต๏ธ[install comand line for webcam]
cheese [to open cheese]
๐Ÿ‘‰๏ธFind Error in php file via console ------------------------------
๐Ÿ˜Ž๏ธ php -l filename.php[find the error of a file eg.index.php]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment