Questions tagged [alias]

In computing, an alias is an alternate name for an object, such as a variable, file or device.

Filter by
Sorted by
Tagged with
0 votes
1 answer
33 views

Creating an alias in Powershell that includes a space (for a parameter)

I want to start the control panel applet RunDll32.exe shell32.dll,Control_RunDLL via an alias in PowerShell. Running it directly works fine but when I set an alias: set-Alias controlpanel "...
user avatar
  • 7,599
0 votes
0 answers
33 views

Unable to run aliases with cmder on command line - aliases not recognised

I am using cmder on Windows 10, I have some aliases in the user-aliases.cmd file, I created a new alias using the alias command on the command line and there are some that were already in the file ...
user avatar
0 votes
2 answers
15 views

DOSKEY with FOR variable cannot be processed syntactically at this point when defined in macro definition file

When creating the following alias DOSKEY echoall=FOR %p IN (*) DO echo %p in CMD on Windows 10 the alias works as expected printing all the files in the directory. However I tried to define this ...
user avatar
  • 111
0 votes
1 answer
139 views

How to automatically rename tmux window to an aliased command

I have set up multiple aliases to ssh to different servers alias sa="ssh user1@server1" alias sb="ssh user2@server2" alias sc="ssh user3@server3" When I run these ...
user avatar
1 vote
0 answers
35 views

Is there an OSX/macOS CLI command for creating a Finder Alias?

For clarification on the ambiguous word ALIAS in this question. While using Finder (of OSX/MacOS) for generic file operations, and secondary-clicking on a file or folder, a pop-up menu (some refer to ...
user avatar
  • 133
1 vote
3 answers
147 views

Putty on windows - save aliases

I want to use aliases when I connect to ssh via Putty (on Windows). But the aliases get deleted when I close the session. Is there any way to keep these aliases? I tried to add them to connection ->...
user avatar
11 votes
8 answers
5k views

Launch a Windows executable from Run menu in a single word (or two)

Is it possible to configure Windows to launch an executable from the run menu (⊞ Win+R) using a single word? Similar to Mac OS' Spotlight Search, I would like to be able to type one word and launch an ...
user avatar
  • 263
0 votes
0 answers
18 views

Is there a way to colorize bash aliases, as one would with LS_COLORS?

I've been reading a thread about tab completion for bash aliases. Now that I have my aliases all tab-completing properly, I'm curious whether it is possible to colorize them in bash? The LS_COLORS ...
user avatar
0 votes
0 answers
36 views

Alias executes on setting

I am trying to set the following alias: alias dash_token="echo $(kubectl -n kubernetes-dashboard get secret $(kubectl -n kubernetes-dashboard get secret | grep admin-user | awk '{print $1}') -o ...
user avatar
  • 177
0 votes
0 answers
30 views

Creating alias for folders from another PC on google drive

I'm using several computers that I'm trying to link up with google drive. The majority of the data is of course stored on google drive and hence easily accessible to any PC. But each individual PC ...
user avatar
0 votes
2 answers
226 views

Which configuration file should now be used for global settings in Ubuntu (/etc/profile not being sourced)?

I have a Ubuntu workstation with graphical desktop. I also allow some other users to acess it remotely. I have a set of general aliases, PATHs and settings (including a system-wide conda installation) ...
user avatar
  • 45
0 votes
0 answers
13 views

SSH config regexp aliases

I am looking for a way to specify aliases in .ssh/config that would replace a cumbersome config like this: Host zeus-1 HostName zeus-XXX-YYY-001.ZZZ ... Host zeus-999 HostName zeus-XXX-YYY-999....
user avatar
  • 1
0 votes
1 answer
47 views

bash alias assignment in .bashrc for specific date command

I am trying to set an alias to show value of specific date command. When I set the alias, I get correct value, but also get "command not found..." Is there a way to set this without the ...
user avatar
2 votes
0 answers
30 views

Add appExecutionAlias manually?

By default, Windows 10 stores app-aliases in %USERPROFILE%\AppData\Local\Microsoft\WindowsApps\ however this is only partially true (or not true at all, if you think about it). Listing the files in ...
user avatar
  • 61
0 votes
0 answers
31 views

Using two alias together [duplicate]

I have set an alias for sudo (please) and an alias for apt-get (quickly) As long as I use both of them not together the commands work. please shutdown now or quickly install vim As soon as I start ...
user avatar
  • 11
0 votes
0 answers
65 views

Is /etc/aliases the only file defining where root mails are redirected?

My school has a server with the file /etc/aliases. This file notably contains the line root:someuser (it is the only line with the key root). Does it mean that every mail sent to root@hostname.com is ...
user avatar
  • 101
0 votes
0 answers
161 views

How to escape slashes in bash alias name?

I want to make an alias like this: alias /sbin/init="/path/to/my/script/sh" However, when I try to source my .bashrc, it throws an error: -bash: alias: `/sbin/init': invalid alias name How ...
user avatar
0 votes
1 answer
42 views

What if give the name of existing gmail as an alias to the outlook mail?

Let's say I have mymail@gmail.com. What if I'll set mymail@gmail.com as an alias for mymail@outlook.com? If somebody will sent me mail to gmail.com, will I get the message on the outlook.com? What if ...
user avatar
  • 179
3 votes
2 answers
188 views

Quick start "complex" command from within PowerShell

Is it possible to run a "complex" PowerShell commands from within PowerShell using an alias? To give you an example I would like to replace the command Get-VpnConnection -name "VPNname&...
user avatar
  • 7,599
0 votes
1 answer
90 views

How to use Office365 plus addressing?

According to this change Office 365 should support email aliases using the + sign since September this year: https://www.microsoft.com/en-us/microsoft-365/roadmap?filters=&searchterms=59441 I have ...
user avatar
1 vote
1 answer
309 views

powershell function does not work

I'm new to powershell scripting. scan a file with windowsdefender from command line. what I'm doing wrong? function scan { Start-Process "C:\program files\windows defender\mpcmdrun.exe" -...
user avatar
3 votes
3 answers
658 views

Powershell - How can I locate where Aliases and Functions are defined?

Background At some point in time, I know I created a file that defines some functions and assigns aliases to them. These are available in all powershell instances. The problem is, I can't for my life ...
user avatar
1 vote
2 answers
97 views

Sending param to bash from cmd

I want to be able to invoke the file command from within cmd. This works, but is a pain to type: bash -c "file filename.ext" This is much easier, and works as expected... DOSKEY file=bash -...
user avatar
0 votes
1 answer
37 views

DNS- implement domain Alias AND reconfigure Credentials

I am looking at using an existing external domain (say, for example, https://external.host1.com/resources/) as an alias within an internal wifi network. For example, the previously-mentioned public ...
user avatar
  • 1
0 votes
2 answers
297 views

How to set-alias in powershell to cd

I usually use a bash shell and will set 'cd ..' to 'up' just to save myself 3 keystrokes. In PowerShell when I try: Set-Alias -Name up -Value "cd .." or without the quotes Set-Alias -Name ...
user avatar
0 votes
2 answers
71 views

Why is the output of word count not accurate when assigned to alias?

I use squeue to display jobs like below and I would like to count the number of running jobs (according to the fifth) column. The command squeue -h -u $USER | awk '{print $5}' | grep R | wc -l does ...
user avatar
  • 159
7 votes
5 answers
19k views

How do I alias python3 on Windows?

I want to alias python3 to python on windows. I have already removed the alias for the microsoft store as described in this answer. However python3 is still not a known alias. How to I fix this?
user avatar
3 votes
2 answers
1k views

Windows 10 App Aliases not working

I have a number of different apps installed on my windows 10 computer that use the app execution aliases feature (Settings -> Apps and Feautres -> App Execution Aliases). However, with the ...
user avatar
1 vote
1 answer
255 views

Alias ssh to have a default -F flag

I would like to "alias" ssh in my PowerShell profile to: ssh -F $HOME\.ssh\config I have a custom $HOME environment, but the Win32 OpenSSH implementation uses %USERPROFILE% which cannot be ...
user avatar
  • 171
1 vote
3 answers
146 views

Documentation for alias definitions for PowerShell arguments used with Get-ChildItem

In an answer here on superuser.com, it is pointed out that gci -af is an alias for gci -File. That information is correct, and both command lines produce the same result of file listings. However, I ...
user avatar
  • 426
1 vote
1 answer
738 views

Doskey alias command from a cmd shortcut not working

Opening a cmd prompt and manually issuing my custom doskey macro commands works fine, but I figured that I could save time by creating cmd shortcuts that invoke these commands automatically. So, I ...
user avatar
  • 365
0 votes
1 answer
993 views

PowerShell Script: Can you create a dynamically updating variable ($var.substring([int32],[int32]))?

UPDATED/REWRITTEN QUESTION The following is a re-write of a question some found to be confusing. However, I am re-writing this question after learning what I hoped to accomplish was not possible. But,...
user avatar
  • 481
0 votes
2 answers
1k views

Configuring DNS to resolve to WAMP Virtual Host?

I have a website set up on a VM using WAMP. That VM is on a network with an internal domain 123.net. In DNS, I've configured a CNAME (site.123.net) to point to the VM. However, when I try site.123.net,...
user avatar
0 votes
2 answers
812 views

Creating folder alias in Windows 10

I've got the following issue with both a Windows 7 and a Windows 10 installations in french. Let's say I have a file located in my user's home drive: c:\users\USER123\video.mov. For an unknown ...
user avatar
  • 191
1 vote
1 answer
94 views

List three latest files in a directory in linux in the commandline?

I was thinking of adding a convenience alias for myself. As of right now I have an alias called ll for ls -lha. However, I noticed there were several occasions where I wanted to list the latest three ...
user avatar
  • 111
0 votes
2 answers
26 views

Generic way to get mail provider email account aliases for mail client to use as Send From

I have an IMAP account for a domain and I have setup aliases in, the IMAP account provider, to help me separate out my email for different things e.g. sales@ support@ etc. Is there a generic way for ...
user avatar
8 votes
4 answers
2k views

Circumventing "Remote Host Identification Has Changed" warning

I'm connecting to a lot of devices that uses the same IP addresses. When I'm plugging them into the router I'm getting the warning message REMOTE HOST IDENTIFICATION HAS CHANGED! and need to run ssh-...
user avatar
0 votes
1 answer
32 views

Bug/Feature/Faulty while script in zsh

I found a cool script on tecmint: while true; do echo "$(date '+%D %T' | toilet -f term -F border --gay)"; sleep 1; done and tried to alias it in my .zshrc as what-time like so: alias what-time = "...
user avatar
0 votes
2 answers
991 views

Creating a symlink or alias that point to current user´s home sub-folder

Is it possible to create, using terminal on a mac, for a mac, a symlink or an alias to ANY currently logged in user of a mac? This symlink/alias is to be included as a "drop destination" for a ...
user avatar
  • 103
6 votes
1 answer
214 views

Set PowerShell Aliases with a script

I created a PowerShell script to set aliases for a PowerShell session. When I run the script and try the alias, I get the error saying that the alias isn't recongized. How can I use the aliases that ...
user avatar
2 votes
1 answer
1k views

Office 365 - Remove alias from shared mailbox

I have an issue on O365. My customer would like to use the shared mailbox I created as a distribution group. So I thought "ok, lets create an alias test2@test.com on the shared mailbox, put it as ...
user avatar
  • 21
1 vote
1 answer
170 views

Understanding zsh blobing, alias, and tab completion

I am new to zsh and recently moved on from csh, due to obvious reasons. Oddly enough, its taking me slightly longer than I expected to port a lot of aliases which I use extensively. Here's one of ...
user avatar
1 vote
0 answers
66 views

Can nginx be configured to run multiple microservices using different languages under a single domain

I can get nginx aliases and roots to work for static sites - unfortunately I can't seem to get dynamic content to work. Basically what I have is a suite of micro services. Some using the PHP Lumen ...
user avatar
0 votes
2 answers
37 views

Add serveral nginx locations

I read a lot of stackoverflow answers about this topic, but it's imposible resolve my problem. I have 3 locations and I want 3 urls: http://www.example.com/ ---> /var/www/public_root http://...
user avatar
1 vote
0 answers
30 views

execute a banged git-alias (!"tricky-functions here") with a different shell

I have recently started using a system where /bin/sh --help reports an old version of bash. $ /bin/sh --help GNU bash, version 3.2.57(1)-release-(x86_64-apple-darwin18) This affects some of my my ...
user avatar
1 vote
0 answers
36 views

Source-code-compiled qt on command

Backstory I am using opensuse, there are built-in qt4 and qt5 in my system. I need more complete tools from qt for compiling a file, that’s why I installed from source code via qt website. I have ...
user avatar
  • 11
0 votes
1 answer
344 views

Asterisk how to call by names instead of numbers

I haven't found anywhere clear sample how can I setup alphanumeric alias for internal numbers. For example I am calling now to 504@ip. How can I make it possible to reach 504 number by john@ip by ...
user avatar
  • 203
1 vote
1 answer
580 views

Sieve rule for catch-all email setup: Filter into folders based on alias

I'm running a catch-all email setup with my own domain (mydomain.tld). My hoster offers me to create arbitrary Sieve mail filter rules. I would like to create a rule that moves all incoming mail to a ...
user avatar
  • 21
1 vote
2 answers
806 views

Can I alias the empty string?

In bash, can you alias a null command to something?  In other words, recognize that the user has pressed just the Enter key at the shell prompt?  For example, if you want to clear the screen with a ...
user avatar
0 votes
0 answers
239 views

How do I set the aliases to echo the commands before executing on Windows

I am setting command line aliases on Windows using doskey /MACROFILE=foo.txt. Before executing each command, I would like my command prompt to echo the actual command that I would be executing ...
user avatar

1
2 3 4 5
7