Showing posts with label folder. Show all posts
Showing posts with label folder. Show all posts

Sunday, 28 April 2013

Determine the size of each individual file in a folder from Terminal: ls -l

So for some reason you've got a folder with loads of files in it and you want to find out their contents using the terminal. The solution is quite easy.

1. Enter sudo -i & your password to prevent any annoying permission denied messages.

2. Enter ls -l /home/yourname/folder or whatever the path to your folder is. 

And that's it. Easy.

Saturday, 9 February 2013

Solution To A Text-Based Script That Won't Run

So you've downloaded (or created) a script in the form of a text file but you can't seem to run it. Here's a possible solution.

In the folder containing the script:

1. Edit - Preferences
2. Go to the tab Behaviour and check Run executable files when they are opened.

Now go back and try to run your script and it should work.