Install sublime text on kali linux/debian

Install the GPG key:

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

Ensure apt is set up to work with https sources:

sudo apt-get install apt-transport-https

Select the channel to use:

Stable:

echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Dev:

echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Update apt sources and install Sublime Text

sudo apt-get update 
sudo apt-get install sublime-text

Source: Sublime text

CD into directory with space character(s) in its name

CD command does not work if there is a space in the folder name.

Say we have a folder with name “folder with space in name” as below:

folder with space in name

And we try to CD into this folder as below… it just fails

root@kali:~/Desktop# ls
Links.txt PWK-DS folder with space in name mount-shared-folders.sh pwdump startup.sh
root@kali:~/Desktop# cd folder with space in name
bash: cd: too many arguments
root@kali:~/Desktop#

And the trick is to add quotes around it as below

root@kali:~/Desktop# cd "folder with space in name"
root@kali:~/Desktop/folder with space in name#

Tttrrrrrrrikkkkyyyy…. 🙂