1
vote
1answer
26 views

Desktop shortcut doesn't work for script but script work fine

#!/bin/bash/ ls -1 *.mp3 > playlist.m3u for (( ; ; )) do mplayer -playlist playlist.m3u; sleep 0.1; done This is the script and it works ! [Desktop Entry] Version=1.0 Type=Application Name=Play ...
0
votes
1answer
55 views

How do I make a sh file for running my software automatically?

I want to make a sh file on my desktop to run a software for example "kerio-kvc" I made a sh file on my desktop with this content automatically #! /bin/bash sudo /etc/init.d/kerio-kvc start But ...
2
votes
3answers
17k views

How to execute sh script from a desktop shortcut?

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 ...
2
votes
2answers
526 views

How to reset bash keyboard shortcuts?

How can I reset the bash shell's Ctrl + C keyboard shortcut? I changed it a few months ago and can't seem to recover it.
1
vote
1answer
1k views

Why we can't run commands with gnome shortcuts?

When I make a custom shortcut with gnome (gnome-control-center keyboard) I can't set it to a command. Why? Example: I can't set a shortcut for sudo apt-get update. Instead I must first invoke a ...
1
vote
2answers
241 views

Need to make a shortcut command using xargs

I always want to kill a process id which listening on Port 3000. So presently I am using, 1.lsof -i tcp:3000 will give output as, COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME ruby ...
11
votes
5answers
9k views

Commandline shortcut for current directory similar to ~ for home directory?

When i use the cp or move command in a terminal window, i'm currently with bash in a certain folder like this. NES@server:~/Desktop/dir1$ And now i wanna copy a file from here ~/anotherdir/dir2 ...