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
1 vote
0 answers
21 views

merge numbered files from different directories into same directory in correct order

I have some directories named FOO and BAR and etc. that have files in form FOO/ 1.png ... 18.png BAR/ 1.jpg ... 12.jpg ... and I would like them to be all copied into the DESTINATION directory ...
user3446323672's user avatar
2 votes
0 answers
32 views

Read Only folder alias in Windows

I have a folder I would like to create a read only alias of to prevent tools from modifying the original contents in any way. The original should be kept in "pristine" condition so ...
dana44's user avatar
  • 21
1 vote
0 answers
37 views

Why is my alias command doing nothing?

It's not that trying to run the alias doesn't do what I expect. The alias command itself appears to do nothing. If I try to do: alias python2='python3' alias | grep python I get two blank outputs. I ...
Devsman's user avatar
  • 137
-1 votes
2 answers
70 views

Missing PS.exe alias

My Windows 11 Enterprise installation is missing the PS.exe alias for Powershell. When I try to run any command starting with "PS" for powershell to execute, I get an error that it is ...
ETL's user avatar
  • 371
0 votes
1 answer
78 views

Overwrite bash alias for git pull to include --recurse-submodules

Neither functions seem to affect anything for me? Is anyone able to get them working and show me what I'm doing wrong? I'm trying to override git pull to include recursive submodules whilst keeping ...
P1000's user avatar
  • 1
0 votes
3 answers
2k views

Best method for setting permanent aliases in powershell?

When I install something like ffmpeg with winget, it sets permanent aliases for ffmpeg, ffplay, & ffprobe. winget install gyan.ffmpeg It doesn't look like it's adding anything to my path ...
ninbura's user avatar
  • 279
3 votes
1 answer
1k views

Create aliases in PowerShell

I want to create a permanent alias in PowerShell for all executables located within Cygwin's bin directory: C:\Cygwin64\bin I can do it for individual executable like grep via: Set-Alias grep "...
susik's user avatar
  • 653
1 vote
1 answer
73 views

Windows Search alias

I have a program that I used to use all the time. Now however a new one has superseded it. However I constantly forget it's name, and when searching for it using the windows search, I keep using the ...
David Turley's user avatar
1 vote
1 answer
80 views

How to access PHPMyAdmin from the web on a VPS (IaaS) server environment? [closed]

Ubuntu server 22.10. If PHPMyAdmin doesn’t have this path /var/www/html/phpmyadmin then how could I access it from https://IP-ADDRESS/phpmyadmin? I thought about creating a softlink from /usr/share/...
alhemister's user avatar
0 votes
1 answer
47 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 ...
Life after Guest's user avatar
-1 votes
1 answer
835 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 ...
neubert's user avatar
  • 7,092
1 vote
1 answer
69 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 ...
NorthSon's user avatar
  • 127
0 votes
0 answers
35 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 ...
evan-e-cent's user avatar
2 votes
1 answer
270 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 ...
Sachama's user avatar
  • 23
0 votes
1 answer
289 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 ...
php and js's user avatar
0 votes
0 answers
315 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 ...
user345435's user avatar
0 votes
1 answer
212 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:...
Horror Vacui's user avatar
0 votes
1 answer
393 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 $...
Fattie's user avatar
  • 121
0 votes
1 answer
98 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 ...
Jeanot Zubler's user avatar
0 votes
1 answer
197 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 ...
peterparker's user avatar
0 votes
2 answers
279 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 ...
Caecilius-rgb's user avatar
0 votes
0 answers
36 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 ...
fabien julio's user avatar
0 votes
2 answers
2k 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 "...
Albin's user avatar
  • 10.4k
0 votes
1 answer
981 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 ...
user20010's user avatar
0 votes
2 answers
160 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 ...
Madjosz's user avatar
  • 111
2 votes
1 answer
4k 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 ...
Abhijeet Viswam's user avatar
4 votes
1 answer
560 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 ...
Keve's user avatar
  • 175
1 vote
3 answers
1k 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 ->...
Normarni's user avatar
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 ...
ThisClark's user avatar
  • 251
0 votes
0 answers
41 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 ...
Andrey's user avatar
  • 187
0 votes
2 answers
812 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) ...
jov14's user avatar
  • 55
0 votes
0 answers
114 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....
Showa's user avatar
  • 1
0 votes
1 answer
299 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 ...
coyoteee3's user avatar
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 ...
Morzen's user avatar
  • 111
2 votes
0 answers
131 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 ...
KreonZZ's user avatar
  • 171
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 ...
toni's user avatar
  • 11
0 votes
0 answers
164 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 [email protected] is ...
Hulkiorra's user avatar
  • 101
1 vote
0 answers
798 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 ...
Andy Mac's user avatar
0 votes
1 answer
66 views

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

Let's say I have [email protected]. What if I'll set [email protected] as an alias for [email protected]? If somebody will sent me mail to gmail.com, will I get the message on the outlook.com? What if ...
R St's user avatar
  • 189
3 votes
2 answers
498 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&...
Albin's user avatar
  • 10.4k
0 votes
1 answer
163 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 ...
Machiel Visser's user avatar
1 vote
1 answer
939 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" -...
testoflow's user avatar
  • 127
4 votes
3 answers
2k 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 ...
Erik W. Gren's user avatar
1 vote
2 answers
145 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 -...
user1215114's user avatar
0 votes
1 answer
76 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 ...
scoll's user avatar
  • 1
0 votes
2 answers
1k 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 ...
Robert Houghton's user avatar
0 votes
2 answers
153 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 ...
zyy's user avatar
  • 189
26 votes
5 answers
56k 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?
HerpDerpington's user avatar
4 votes
2 answers
3k 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 ...
BarrowWight's user avatar
2 votes
1 answer
717 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 ...
Holt's user avatar
  • 181

1
2 3 4 5
8