Create your first script - automatically update and upgrade your Kali Linux installation
Creating scripts is easy in Linux distributions, you just need access to any text editor - Linux has plenty available (gedit or gvim, to name just a few examples) and to some available neurons. In this example we'll use the update and upgrade commands and we'll create ourselves a script that once executed will automatically run the commands for us - this is the easiest example I came-up with.Open your text editor. At the first line write
#!/bin/bashPress enter and below this line type:
apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -ySave it as "update.sh" - or any other name you would prefer.
Right click your script and on the "Permissions" tab set a checkmark near Execute - allow executing file as a program.
Now every time you boot-up your Kali, instead of typing the whole thing into a terminal, just run your script.
Post a Comment