Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am moding a icon theme (will post it once finished) to my liking. I have a Q for the command line gurus. I have edited the icon theme for the 128 size. the 128 folder has 6 directories with pngs in them. i want to use image magic to resize the whole directory to 64x64 size while keeping the folder structure, is it possible?
Now that you have created the shell script (the text file containing the code), you must make it executable before you can use it.
In a console, cd (the command to change directory) to the directory containing the script. Issue the command ls -l <scriptname>, where <scriptname> is the name of your script. ls -l shows a long lising which includes the permissions for owner/group/others (rw-rw-r--, or something similar. The dash is the place for the x letter, which indicates executable (for a file) and permission to enter (for a folder).
To make your script executable, issue the command chmod +x <scriptname> (to give executable to the owner, members of the group,and all others. Issue the command chmod u+x <scriptname> to give execute permission to the owner only.
Then, to execute the script, ./<scriptname>. The leading ./ means "in this directory".
Or, from anywhere in the directory tree, just give the full path to the executable to run it: /media/thd/DL-Web downloads/scale/128x128/<scriptname>.
Note that you may use the script in your own home folder without restriction. To use it in a folder normally restricted for users, you wil have to run the script as root.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.