Linux Cheat Sheet
Linux Cheat Sheet
dist-uprade
git
https://tools.kali.org/kali-metapackages
Go to Window Buttons setting (right-click on panel > Panel > Panel Preferences > Items > select
"Window Buttons" > Edit the currently selected item (a button on the right side)
In "Behaviour" > Window grouping => Never
https://tools.kali.org/tools-listing
su root
sudo su
commands
pwd ls cd
passwd root
sudo apt-get -y install
apt-get -y install git
In this tutorial, we will show you how to use the rm, unlink, and rmdir commands to remove files
and directories in Linux.
How to Remove Files
To remove (or delete) a file in Linux from the command line, use either the rm (remove) or
unlink command.
The unlink command allows you to remove only a single file, while with rm you can remove
multiple files at once.
%a %d %b, %r
Ctrl+Alt+T
curl -sSl
https://raw.githubusercontent.com/sundowndev/PhoneInfoga/master/support/scripts/install | bash
sudo mv ./phoneinfoga /usr/bin/phoneinfoga
phoneinfoga scan -n [Mobile_number_with_country_code]
tilix
tasksel
Install a package
add
sudo dpkg -i DEB_PACKAGE
sudo apt-get install -f
remove
sudo dpkg -r PACKAGE_NAME
sudo dpkg-reconfigure PACKAGE_NAME
For example if the package file is called askubuntu_2.0.deb then you should do sudo dpkg -i
askubuntu_2.0.deb. If dpkg reports an error due to dependency problems, you can run sudo apt-
get install -f to download the missing dependencies and configure everything. If that reports an
error, you'll have to sort out the dependencies yourself by following for example How do I
resolve unmet dependencies after adding a PPA?.
Remove a package
For example if the package is called askubuntu then you should do sudo dpkg -r askubuntu.
Reconfigure an existing package
This is useful when you need to reconfigure something related to said package. Some useful
examples it the keyboard-configuration when you want to enable the Ctrl+Alt+Backspace in
order to reset the X server, so you would the following:
Another great one is when you need to set the Timezone for a server or your local testing
computer, so you use use the tzdata package:
[ ] ... GNOME
t installed (usually because a root password was provided at install time), you can install snap by
first switching to the root account:
$ su root
# apt update
# apt install snapd
Either log out and back in again, or restart your system, to ensure snap installed
:information_source: Note: some snaps require new snapd features and will show an error such
as snap "lxd" assumes unsupported features" during install. You can solve this issue by making
sure the core snap is installed (snap install core) and it installed
$ hello-world
Hello World!
sudo systemctl restart snapd snapd.socket