Linked Questions

11
votes
3answers
63k views

How do I create a batch file and run it? [duplicate]

should I use the text editor? the extension should be .sh or .bat?
8
votes
1answer
43k views

How to create & execute a script file [duplicate]

Is there a way to create and execute a script file in Ubuntu 14.04? Perhaps something like Windows batch files. Specifically, I mean the default scripting language of the Ubuntu terminal (Bash). ...
0
votes
1answer
1k views

Execute sh file with java command [duplicate]

Translated I'm looking for a similar solution to creating a bat file in Windows on Ubuntu 18.04, I have a java file in which I make the call via console with the command java -jar routine.jar however ...
0
votes
1answer
502 views

Script with commands split & cat [duplicate]

I want to split an image.jpg into parts and merge it again. I used the following commands: split -b 1440 image.jpg # It divides it into 6 parts. cat xaa.jpg xab.jpg xac.jpg xad.jpg xae.jpg xaf.jpg &...
1
vote
0answers
141 views

How can I install multiple apps on Ubuntu using scripting? [duplicate]

I would like to install a lot of apps, and I has been saving all commands to install each app, here is a sample: ##Global sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys ...
0
votes
1answer
124 views

How Do I make a program with Ubuntu Command Line [duplicate]

I want to know how to make a program that you can edit and run. The problem is I don't know what the file extension is, like how you can make a text document on windows and save as filename.bat.
0
votes
1answer
113 views

Automated Scripting [duplicate]

I was wondering if there was a way to set a chain of commands to run without having to type the in individually everytime you want to run it. That way, when I get an computer to secure I can just run ...
0
votes
1answer
14 views

How to make a file which when exectued will install multiple packages in Ubuntu? [duplicate]

I want to make a file which when executed would install all the packages listed inside it like pip install numpy, pip install pandas and others. How is this done? please guide me to appropriate ...
1430
votes
9answers
4.6m views

How to unzip a zip file from the Terminal?

Just downloaded a .zip file from the internet. I want to use the terminal to unzip the file. What is the correct way to do this?
9
votes
3answers
2k views

How can I start my application in a more convenient way?

I am new in Ubuntu. I have an application which I open in the following way. I type in the console: cd ~/MyDirectory ./myapp +some arguments How can I find a solution, so I could launch my ...
6
votes
2answers
6k views

Store frequently used terminal commands in a file

Okay, so I want add a command to my Desktop (Or any convenient location), and whenever I run it I want it to clone the HTML5 boilerplate. $ git clone git://github.com/paulirish/html5-boilerplate.git ...
4
votes
1answer
17k views

CMD.exe Emulator in Ubuntu to run .cmd/.bat file [duplicate]

Possible Duplicate: Executing .bat file The title says it all. I need to create batch files and run and test them. I dont have any Windows machine. If there was any cmd.exe emulator in Ubuntu I ...
4
votes
1answer
720 views

Crontab: Ubuntu running script (noob)

I'm new to crontab and would like to run the following script from /etc/crontab: 0 15 * * * root bash-c 'for i in /home/dell/Downloads/*.{pdf,docx,png,jpg,PDF,DOCX}; do shred -zvu "$i" -n20; ...
0
votes
1answer
2k views

Shell script to run VM [duplicate]

I use Virtualbox. Instead of clicking on the button of the name of the virtual machine to run it, I want a shell script that can run a Windows XP virtual machine hosted on Ubuntu machine. Can someone ...
0
votes
1answer
874 views

My bash script only opens editor, why doesn't it run? [duplicate]

I created a script to dd sdb to sdc on my older computer with Ubuntu 13. It ran when I clicked on it – asked if I wanted to run in terminal or edit it. On a newer computer, with Ubuntu 14, I created ...

15 30 50 per page