COMMANDS CHEATSHEET
1. sudo apt update && sudo apt full-upgrade -> updates and upgrades the operating system.
2. flatpak update -> updates the flatpak applications.
3. sudo dpkg-reconfigure <package><name> -> reconfigures the package to resolve any dependency problem.
4. sudo dpkg -i <file/packagename.deb> -> install .deb files directly from the Terminal.
5. history -> shows the previously given commands.
6. sudo fc-cache --force -> Found from Archwiki. Force unlocks the font-cache database.
7. sudo fc-cache -fv -> Refreshes the font-cache. Useful after installing some fonts.
8. sudo add-apt-repository ppa:<ppaname> -> add the ppa into the repository.
9. sudo dpkg --add-architecture i386 -> adds 32-bit libraries to the distribution.
10. sudo apt install <package><name> -> installs the specified package along with the dependencies.
11. git clone <repo url> -> downloads the files from selected github/gitlab repo.
12. sudo gtk-update-icon-cache -> updates and refreshes the icon cache.
13. cp -r /path for files or directory to be copied/ /destination path/ -> copies the files/directories to be copied from source to destination. (-r means recursive).
14. mkdir <directory name> -> creates an empty directory.
15. touch <filename>.<extension name> -> creates an empty file with the specified extension name.
16. 7z x <filename>.<tar/7z/zip/tar.xz> -o/destination path/ -> extracts the archive into the destination path.
17. cd /path/ -> change the directory to the specified path.
18. cd .. -> goes to the previous directory.
19. cd -> goes into the /home/<username> directory of the user.
NB:- /home/<username> directory can also be accessed by ~/
20. sudo make -> compiles the .MakeFile (cmake needed)
21. sudo make install -> Installs the compiled MakeFile.
22. ls -> lists the files/directories present.
23. ls -lah -> lists all the files/directories along with hidden files/directories present in human readable format.
24. nano -> Terminal frontend simple text editor.
25. vim -> Extremely hard to use but very powerful terminal frontend text editor.
26. locate <file/directory name> -> powerful search that searches the whole computer for the matched String.
27. find /pathname/ -name "String" -> searches for the String in the specified pathname.
28. which <file/directory name> -> searches for the file/directory.
29. rm -f -> to remove files.
30 rm -f -r -> remove files recursively.
31. rm --dir or rmdir -> removes empty directories.
32. rm --dir -r -> removes directories along with files stored in the directories recursively.
33. cat -> lists the contents of a file in readonly mode.
34. javac -> Java Compiler.
35. gcc -> C-Compiler.
36. g++ -> C++ Compiler
37. bash -> used to run a bash script.
38. ./ -> used to run a executable (.sh files, etc).
39. sh -> used to run .sh files
40. chmod +x -> Makes a file executable.
41. chmod 777 -> Acquires all the possible file permissions.
GET BETTER FONTS
1. sudo add-apt-repository ppa:elementary-os/daily2. sudo apt install fonts-*elementary*
3. sudo add-apt-repository -r ppa:elementary-os/daily
Comments
Post a Comment