Commands To Speed Up Your Terminal
Every new line / command starts with the $ character. Don’t copy it. Oh, and follow all the steps.
$ cd /private/var/log/asl/
$ ls *.asl
$ sudo rm !$
That’s all. But let’s explain line by line what they do.
- The first line goes to the directory where the files that we want to remove are.
- The second line is just to check that we are in the proper directory by listing all the .asl log files
- And the last line removes all the log files shown before.
Now your Terminal will launch instantly. Go ahead and try it.
Important: Be cautious with sudo and rm commands. Always double check that you are running them in the proper directory.