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
0answers
11 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
0answers
9 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
0answers
19 views

Filtering Emails in Thunderbird by “To/Received”

This question is about creating a custom filter in Thunderbird to effectively handle having two, or more, aliases on the same email account. Let's say my main email is main@email.co.uk and I have an ...
0
votes
1answer
19 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 ...
2
votes
0answers
22 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
0answers
21 views

IP address aliases on Windows

I've been trying to find a way to make IP address aliases in Windows 10. The hosts file does work, but it's not what I need. The program detects that the stuff is in the hosts file, and doesn't accept ...
0
votes
0answers
30 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
0answers
51 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 ...
0
votes
0answers
44 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
1answer
38 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
2answers
80 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
1answer
79 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
1answer
122 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
3answers
187 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
2answers
84 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
1answer
25 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
2answers
92 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
2answers
47 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 ...
2
votes
3answers
6k 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?
1
vote
1answer
377 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 ...
1
vote
1answer
74 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
3answers
98 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
1answer
358 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
1answer
527 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,...
0
votes
2answers
654 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
2answers
243 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
1answer
91 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
2answers
22 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
4answers
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-...
0
votes
1answer
28 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 = "...
0
votes
2answers
520 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 ...
6
votes
1answer
163 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 ...
2
votes
1answer
930 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 ...
1
vote
1answer
39 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 ...
1
vote
0answers
51 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 ...
0
votes
2answers
32 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://...
1
vote
0answers
25 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 ...
1
vote
0answers
32 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 ...
0
votes
1answer
195 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 ...
1
vote
1answer
432 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 ...
1
vote
2answers
535 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 ...
0
votes
0answers
173 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 ...
0
votes
1answer
298 views

How can I get Google Chrome to go to an internal page without performing an external search?

I am trying to replicate some behavior that I have seen in Internet Explorer version 11 in Google Chrome version 71. Whenever I search myalias/someinternalpage I am brought to the internal page. ...
1
vote
2answers
496 views

How to make “cd …” goup two directories?

So, currently on macOS I have aliases set up like this... alias ...='cd ../..' alias ....='cd ../../..' This allows me to go up multiple directories by typing in ... in my terminal. However, in my ...
0
votes
0answers
138 views

How to rebase a branch from previous fork in one command?

So I'm trying to come up with a ZSH alias for Git that will rebase my current branch onto the branch it was originally derived (forked) from. Examples: Given the following branch names of A and B. ...
1
vote
1answer
130 views

Assign aliases using FOR in Windows cmd.exe

I've been trying to use a loop to create multiple aliases without success. I'm not a professional, please bear with me... Does anyone know what's wrong in my code or how I can implement this in the ...
0
votes
1answer
73 views

Set up a shortcut to a folder with spaces and hyphens

Hi: I am a Mac OS X user and my work offers us Microsoft OneDrive. The problem is the path name for folders stored on the OneDrive has spaces and hyphens. Like this: ~/OneDrive - My University ...
5
votes
4answers
2k views

Space in doskey/alias for windows?

I try to run Laravel's Artisan command inside the (docker) container by defining a doskey alias. My idea was: php artisan=docker-compose exec apache php artisan $1 However it does not allow me to ...
3
votes
1answer
301 views

Alias for sudo then ssh

I am looking to write an alias for the following two command: sudo su - user ssh somewhere I've tried alias jump='sudo su - user; ssh ' and then use this as jump somewhere but this doesn't work....
3
votes
1answer
291 views

Dynamically creating aliases in PowerShell

I'd like to create some aliases dynamically but I can't get my code to work. Here's the code: # Drives $drives = ("a","b","c","d","e") foreach ($drive in $drives) { New-Item -Path alias:\ -Name $...

1
2 3 4 5
7