0% found this document useful (0 votes)
274 views4 pages

Linux Cheat Sheet

This document provides instructions for installing various software packages and tools on a Linux system using commands like apt-get, dpkg, git clone and more. It discusses removing files and directories with rm, unlink and rmdir, installing and removing chrony for time synchronization, formatting the date and time, installing PhoneInfoga for mobile number scanning, installing the tilix terminal emulator, using tasksel for package selection, installing and removing deb packages with dpkg, and installing snap packages after enabling the snapd daemon.

Uploaded by

neohelix filon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
274 views4 pages

Linux Cheat Sheet

This document provides instructions for installing various software packages and tools on a Linux system using commands like apt-get, dpkg, git clone and more. It discusses removing files and directories with rm, unlink and rmdir, installing and removing chrony for time synchronization, formatting the date and time, installing PhoneInfoga for mobile number scanning, installing the tilix terminal emulator, using tasksel for package selection, installing and removing deb packages with dpkg, and installing snap packages after enabling the snapd daemon.

Uploaded by

neohelix filon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

export QT_QPA_PLATFORMTHEME=qt5ct && qt5ct

dist-uprade
git

apt-y install veil

git clone URL

https://tools.kali.org/kali-metapackages

sudo apt-get -y install kali-linux-full

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

apt-get update & apt-get upgrade

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.

sudo apt-get install chrony

sudo systemctl enable --now chrony


sudo systemctl status chrony

sudo apt-get remove --purge chrony

time day custom format

%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]

phoneinfoga scan -n +1415

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

sudo dpkg -r PACKAGE_NAME

For example if the package is called askubuntu then you should do sudo dpkg -r askubuntu.
Reconfigure an existing package

sudo dpkg-reconfigure PACKAGE_NAME

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:

sudo dpkg-reconfigure keyboard-configuration

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:

sudo dpkg-reconfigure tzdata

sudo dpkg -i atom-amd64.deb

sudo dpkg -i atom-amd64.deb

[ ] ... 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

You might also like