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.

  1. The first line goes to the directory where the files that we want to remove are.
  2. The second line is just to check that we are in the proper directory by listing all the .asl log files
  3. 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.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.