Results 1 to 4 of 4
Hey guys this may be a stupid question but ive searched on google and suprisingly i cnt find nething. but back to the matter at hand. what command would i ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-26-2006 #1
- Join Date
- May 2006
text file creation in the terminal
but back to the matter at hand. what command would i use to make a simple text file in the terminal. but what im really trying to do is create a file on the desktop that will open a url to a website when u open it. i know u can go it using a GUI but im making a vowel that for the first month of using linux im going to do everything through the terminal lol.
anyone know what 2 do?
- 05-26-2006 #2
- 05-26-2006 #3
To create an empty file you can use touchCode:
echo test you want in the file > destination.txt
- 05-26-2006 #4
To put the file on your desktop, navigate to /home/emblinex/Desktop before creating the file. Or if you've already made it somewhere else, just move it to the /home/emblinex/Desktop directory with the mv command.
The content for a file that opens a specific URL in a Web browser just needs to have the browser's launch command, followed by the URL. So to open LinuxForums in Firefox,
#!/bin/sh /usr/bin/firefox http://www.linuxforums.org
You'll need to make it executable with the chmod command. After that, you can double-click it on your desktop or dot-slash it in a terminal to run it.Stand up and be counted as a Linux user!