I want to create a file, which will execute a code in terminal when dbl clicked.. Can this be done? If Yes, How?
122711
Im trying to make a shortcut to login my ssh server:  ssh x.x.x.x   I made the following file:  ssh_home.sh   Made it executable:  sudo chmod +x ./ssh_home   Checked by right clicking properties to check if it was executable and it was..  But whatever I do, when double clicking it, it will launch gedit. I tried "Open With" but no terminal app is shown there. I searched the net but only found a way to link to the file while not integrating it in one "shortcut file"
9695
Is there a way to compile all tex files within a specific folder, from LINUX terminal, at once?   I would like to do this using pdflatex or lualatex in a way to create a pdf file for each distinc original tex file.   This question is not about creating individual tex files to form a single pdf file using \input or \include, at all.
35102
When I work in terminal, sometimes I want to open the current directory in a GUI file manager. And then to click the items in the window to run the application. How can I do this?
76982
My aim is to log all output from a script into a directory that the script is going to create.  For example, I have:  ~/.abc.sh:  #! /bin/bash rails new myapp   When I run...  cd ~/code . ~/.abc.sh   ...that will create a new Rails app in directory ~/code/myapp.  When Rails is creating an app, it outputs a whole lot of text that I want to capture and store in a log file in the same directory the rails command newly created. I also want to display that text in the terminal as well.  How do I go about doing this?
77842
As of Ubuntu 12.04, what is the proper/clean way to make the system execute a script upon boot? (not upon user login) e.g. running a daemon.
12344
I would like to know if there is something like DOS interface for Ubuntu. I mean a "GUI" that can run from the console (for example if you are using Ubuntu Server). Some file explorer like Nautilus but in console.
62703
I'm trying to change my wallpaper to a random image using Indrajith Indraprastham's suggested script here:    When I run the script from a terminal window, the bg changes just fine, but when it's run from cron, I'm mailed this error:     (process:21901): dconf-WARNING **: failed to commit changes to dconf: Error spawning command line 'dbus-launch --autolaunch=00216c114dcf433c9bb9009985d607d6 --binary-syntax --close-stderr': Child process exited with code 1   I would appreciate any suggestions.
25720
i need to learn to do it just using the commands in the terminal. any help would really help thanks
64798
When writing answers on here, it's often necessary to create a new script and chmod +x it to make it executable. I won't go into whether this is a good thing or not, but explaining to people that they need to fire in three separate command (and teaching them to use nano!) is a bit of a waffle.  Is there anything easier?
71297
Is there any way to set +x bit on script while creating?  For example I run:  vim -some_option_to_make_file_executable script.sh   and after saving I can run file without any additional movings.  ps. I can run chmod from vim or even from console itself, but this is a little annoying, cause vim suggests to reload file. Also it's annoying to type chmod command every time. pps. It would be great to make it depending on file extension (I don't need executable .txt :-) )
43519
There are several ways to execute a script. The ones I know are: /path/to/script # using the path (absolute or relative) . script        # using the . (dot) source script   # using the `source` command  Are there any other way? What are the differences between them? Are there situations that I must use one and not another?
65521
Is it possible in an interactive bash shell to enter a command that outputs some text so that it appears at the next command prompt, as if the user had typed in that text at that prompt ?  I want to be able to source a script that will generate a command-line and output it so that it appears when the prompt returns after the script ends so that the user can optionally edit it before pressing enter to execute it.  This can be achieved with xdotool but that only works when the terminal is in an X window and only if it's installed.   [me@mybox] 100 $ xdotool type "ls -l" [me@mybox] 101 $ ls -l  &lt;--- cursor appears here!   Can this be done using bash only?
73573
How can I create an empty file from the command line?
31599
I want to create command in terminal that would allow me to use  chrome index.html   and have the the given file open in Google Chrome.  How can I get this working?
123740
For example, I normally open mousepad (xfce equivalent of gedit) from the applications menu. However, I know that you can also do this in a terminal by typing mousepad.   Following this example, what I want is whenever I open mousepad via GUI, a new line is written in a log file stating something like Sep 5 15:35:11 lucho@lucho:~$ mousepad. More in general, what I want is to log all GUI activities that are potentially do-able via command-line (like opening programs, changing permissions, modifying a system settings, etc) but written in its alternative command-line execution format. I want this in order to improve my knowledge of how to use the command-line (without going through the man pages). There are many things I do through the GUI which I don't do via command-line (some potentially automatable via a script or via keyboard shortcuts) and having this log file would be a good way to learn them.  I'm aware of the existence of the syslog file in /var/log but that is not what I need. The Activity Log Manager app from Ubuntu repositories does not show command-line format, so far as I know. I need something like the .bash_history file that exist in my home folder but recording my GUI-based activities.
79919
Is it possible to run a .exe file in Ubuntu in a script? For example a simple Matlab code like this:  system("dir/WAV2RAW.exe")
82618
How can I automatically source a particular shell script when I open a terminal window by right clicking somewhere and choosing "open in terminal"?  For example, every time I open a terminal I need to run the following command line:  source myscript   How can I make it so that I don't have to type this automatically?  My script is written in tsch:  #!/bin/tcsh setenv DISPLAY 127.0.0.1:10.0 cd /ast/dcm/data   I'm using CentOS 7.