[LINUX] Create command shortcuts on Ubuntu 16.04

It is troublesome to type long commands such as ssh login, so I thought it would be easier if I could start the command with a shortcut. There is also an alias, but it is troublesome to register each time, and in the end you have to type a command.

I'm not sure if it works for other distros, but it probably works for Ubuntu.

environment

procedure

--Create an empty file on the directory. The name is arbitrary and the extension is .desktop.

--Write the following contents in the created file using gedit or vim.
Enter a descriptive name in Name and the command you want to execute in Exec.

[Desktop Entry]
Name=ssh_connect_raspberrypi
Exec=ssh [email protected]
Terminal=true
Type=Application

--Give execute permission to the file. Right-click and select Properties> Permissions and select Checkbox.

--Then it becomes an executable file, so double-click it to start the terminal that executed the specified command.

Remarks

By the way, the content described is actually here in the property of the shortcut of the terminal, so you can also create it by editing this.

Recommended Posts

Create command shortcuts on Ubuntu 16.04
Shebang on Ubuntu 20.04
[Venv] Create a python virtual environment on Ubuntu
Try to create a new command on linux
Install TensorFlow on Ubuntu
Install PySide2 on Ubuntu
build Python on Ubuntu
Install Python 3.3 on Ubuntu 12.04
Installing pyenv on ubuntu 16.04
Install Theano on Ubuntu 12.04
Install angr on Ubuntu 18.04
Install pip / pip3 on Ubuntu
Multiply PDF by OCR on command line on Linux (Ubuntu)
Set up Python 3.4 on Ubuntu
I installed tensorRT on Ubuntu 18.04
Run Jupyter on Ubuntu on Windows
Use matplotlib on Ubuntu 12 & Python
SoftwareRAID 0 on SereneLinux (Ubuntu 18.04 Desktop)
Linux beginners create Ubuntu 16.04 environment on Docker (for Mac)-first half-
USB Wifi on Ubuntu 20.04LTS
Set matplotlib font on ubuntu
Put Python 3.x on Ubuntu
Rebuild kernel on Ubuntu 20.04 (on Azure)
Operate ubuntu on VScode (windows10)
Install GoLand IDE on Ubuntu
Display GUI messages on Ubuntu
Install OpenCV on Ubuntu + python
wsl Install PostgreSQL on Ubuntu 18.04
Easy df command on Linux
Run unix command on python
Introducing TensorFlow on Ubuntu + Python 2.7
[ROS] Install ROS (melodic) on Ubuntu (18.04)
Create a classroom on Jupyterhub
Install Caffe on Ubuntu 14.04 (GPU)
linux: create original Terminal command
Install Docker on WSL Ubuntu 18.04
GSI_DEM to geotiff conversion → UTM conversion → ascii conversion only on Ubuntu command line
Install Python 3.8 on Ubuntu 18.04 (OS standard)
Remove ubuntu installed on Windows 10 machine
Python 3.4 pyvenv fails on Ubuntu 14.04 LTS
Changed partition mount point on Ubuntu
Install Caffe on Ubuntu 14.04 (CPU mode)
Prepare Python development environment on Ubuntu
Install Mecab and mecab-python3 on Ubuntu 14.04
Command to create Linux Live USB
Install and run dropbox on Ubuntu 20.04
Install OpenCV and Chainer on Ubuntu
Building a Python environment on Ubuntu
Install CUDA 8.0 and Chainer on Ubuntu 16.04
Install Python 3.8 on Ubuntu 20.04 (OS standard)
Introducing Python using pyenv on Ubuntu 20.04
Preparing python using vscode on ubuntu
Create a Python environment on Mac (2017/4)
Completion of docker command on Linux
Mount S3 on Ubuntu with goofys
Create a SlackBot service on Pepper
Create a Linux environment on Windows 10
I tried Cython on Ubuntu on VirtualBox
Create a python environment on centos
Install fabric on Ubuntu and try
Using a serial console on Ubuntu 20.04