Skip to main content

List files (ls) with detail

ls -l -d1 */
ls -hla
ls -R

Copy (can add new name)

cp old-path new-path

Move (can rename)

mv old-path new-path

Delete (empty folder and contents)

rm -rf path-to-folder/-or-file

Create a folder

mkdir path-to-new-folder

Create path

mkdir -p path/to/new/folder

Set folder permission for user (not change ownership)

sudo apt-get update
sudo apt-get install -y acl
setfacl -R -m u:deploy:rwx $TARGET_FOLDER
setfacl -R -d -m u:deploy:rwx $TARGET_FOLDER

Change ownership folder recursively

sudo chown -R $USER:$GROUP $TARGET_FOLDER

Install .deb

sudo dpkg -i software.deb

Extract tar

sudo tar -C /usr/local -xzf test.tar.gz

Compress tar

tar -czvf archive-name.tar.gz foldername/

Shortcut location

/usr/share/applications/
/var/lib/flatpak/app/
/current/active/export/share/applications/
/home/americio/.local/share/applications/