Questions tagged [alias]
In computing, an alias is an alternate name for an object, such as a variable, file or device.
344
questions
0
votes
1
answer
16
views
Create Windows console user alias
I must create a video tutorial and I need to show the Windows terminal.
I'd like to create an alias of the console user: is this possible without creating a new user?
For example,
C:\Users\maryjane
...
-1
votes
1
answer
31
views
making it so alias's work in shell scripts?
So I don't have python available as a command on my system but I do have python3. So I did alias python=python3 and I was able to then do python test.py insead of just python3 test.py.
I then created ...
1
vote
1
answer
27
views
Create hard-coded domains to autopopulate columns with aliases instead of codes in excel
I work with layer databases exported from ESRI ArcGIS Online. On ArcGIS, attribute tables have many columns (or fields) with codes. For each code corresponds a specific alias based on the properties ...
0
votes
0
answers
25
views
How can I find an alias to a server that no longer exists on Mac M1Max Verntura 13.2
I installed Carbonite on my Mac. Every time it runs it produces an Apple dialogue box that says it is unable to find the server "Craig's Computer Server". Note the ' mark. This causes ...
2
votes
1
answer
46
views
Alias for an URL and not for a file in MacOS
In macOS, an alias is a small file that I can click in Finder, which represents another object in a file system and provides a dynamic link to it. Is there a way to have a small file like an alias ...
0
votes
1
answer
98
views
macOS: Alias or symlink to 'new' app does not work
On my Mac I migrated my text editor to a different one. The old one is the now 'archived' Atom editor and the new one is VSCodium.
Many 'default' file types point to 'Atom' so that does not work any ...
0
votes
0
answers
61
views
How can I create global command aliases with pre-set environment variables or command line switches
I have a command I run and I can influence it's behavior using command line switches or environment variables like so:
C:\> myCommand --option1 value1 --option2 value2 opt
Or:
C:\> set ...
0
votes
0
answers
149
views
Alias not exported from .zprofile to folder location that exists
In my .zprofile, I have a bunch of aliases that follow the same pattern:
export remotedir="$HOME/remote"
export localdir="$HOME/local"
etc.
They all work, except for one, which ...
0
votes
1
answer
135
views
bash: XY: command not found; when XY is an existing alias
I've just noticed that when I call fc, I got the following error message:
zoltan@adrian ~ $ fc
bash: vi: command not found
The which command returns a similar result:
zoltan@adrian ~ $ which vi
which:...
0
votes
1
answer
142
views
Make an alias work in "that" directory? Even if created in .zshrc [duplicate]
This is zsh but perhaps applies to other shells.
Say you are in directory /foo and you
% find $PWD -name '.*'
it works fine, results are from /foo.
Now (in /foo) type this
% alias crazy="find $...
0
votes
1
answer
56
views
Weird spacing in alias from .profile
I am trying to add some aliases to my yocto linux machine. For testing purposes i added the lines alias ..='cd ..' and alias ps='ps -A' to a newly created ~/.profile. When I log in to my device with ...
0
votes
1
answer
116
views
ln alias path to audio samples not recognized by Ableton Live
I used to have an external HDD titled "WD Elements 250GB" which contained audio samples I used in Ableton Live projects.
The files are still present, though on an internal HDD now. I tried ...
0
votes
2
answers
99
views
Accidentally made an alias for a pre-existing command on OS X
I was toying around with aliases and made an alias to take me to the directory where I store all my bash projects via the cd command.
However, I used 'bash' as a name for the alias. Now when I run all ...
0
votes
0
answers
29
views
Can a domain name be an alias of a page of a website hosted on a web hoster?
Let's say my wordpress website is example.com. I want to create an event named momentum and I created a page for it at example.com/events/momentum. The thing is that momentum is a really important ...
0
votes
2
answers
1k
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 "...
0
votes
1
answer
611
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 ...
0
votes
2
answers
100
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 ...
2
votes
1
answer
2k
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 ...
3
votes
0
answers
221
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 ...
1
vote
3
answers
910
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 ->...
9
votes
8
answers
6k
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 ...
0
votes
0
answers
39
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 ...
0
votes
2
answers
585
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) ...
0
votes
0
answers
30
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....
0
votes
1
answer
168
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 ...
1
vote
1
answer
1k
views
Global alias in zshrc file
I am using the command line in a MacBookPro terminal, with zsh as the default profile.
I am trying to write a global alias to the zshrc in my home directory file but encounter a strange error.
If I ...
2
votes
0
answers
73
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 ...
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 ...
0
votes
0
answers
138
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 ...
1
vote
0
answers
554
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 ...
0
votes
1
answer
46
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 ...
3
votes
2
answers
348
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&...
0
votes
1
answer
138
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 ...
1
vote
1
answer
661
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" -...
3
votes
3
answers
1k
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 ...
1
vote
2
answers
123
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 -...
0
votes
1
answer
60
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 ...
0
votes
2
answers
728
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 ...
0
votes
2
answers
122
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 ...
16
votes
5
answers
40k
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?
3
votes
2
answers
2k
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 Features -> App Execution Aliases). However, with the ...
2
votes
1
answer
543
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 ...
1
vote
3
answers
219
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 ...
1
vote
1
answer
2k
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 ...
0
votes
1
answer
2k
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,...
1
vote
2
answers
3k
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,...
0
votes
2
answers
2k
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 ...
1
vote
1
answer
95
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 ...
0
votes
2
answers
41
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 ...
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-...