I guess you are looking for brace expansion:
cp /home/ankur/folder/{file1,file2} /home/ankur/dest
take a look here, it would be helpful for you if you want to handle multiple files once :
http://www.tldp.org/LDP/abs/html/globbingref.html
tab completion with zsh…
Related Posts:
- How can I kill a process by name instead of PID, on Linux?
- How do I pause my shell script for a second before continuing?
- How to create a file in Linux from terminal window? [closed]
- In the shell, what does ” 2>&1 ” mean?
- In the shell, what does ” 2>&1 ” mean?
- How do I use a regex in a shell script?
- How to grep for case insensitive string in a file?
- Difference between wait and sleep
- Multi-line string with extra space (preserved indentation)
- Multi-line string with extra space (preserved indentation)
- ‘\r’: command not found – .bashrc / .bash_profile [duplicate]
- ‘\r’: command not found – .bashrc / .bash_profile [duplicate]
- How can I check if a directory exists in a Bash shell script?
- “sed” command in bash
- How can I declare and use Boolean variables in a shell script?
- How to reload .bashrc settings without logging out and back in again?
- How can I declare and use Boolean variables in a shell script?
- How to reload .bash_profile from the command line?
- What is the purpose of “&&” in a shell command?
- Replace one substring for another string in shell script
- Pseudo-terminal will not be allocated because stdin is not a terminal
- Cannot use mkdir in home directory: permission denied (Linux Lubuntu)
- How can I count all the lines of code in a directory recursively?
- Given two directory trees, how can I find out which files differ by content?
- How to change the output color of echo in Linux
- Which characters need to be escaped when using Bash?
- Shell: How to call one shell script from another shell script?
- Pseudo-terminal will not be allocated because stdin is not a terminal
- find: missing argument to -exec
- ./configure : /bin/sh^M : bad interpreter
- How to check if an environment variable exists and get its value?
- What is the difference between “#!/usr/bin/env bash” and “#!/usr/bin/bash”?
- How to convert a string to lower case in Bash?
- Is there a “goto” statement in bash?
- Create a new file in git bash
- How to specify the private SSH-key to use when executing shell command on Git?
- Sorting data based on second column of a file
- Writing a simple shell in C using fork/execvp
- Speed up rsync with Simultaneous/Concurrent File Transfers?
- Multi-dimensional arrays in Bash
- Variable interpolation in the shell
- chmod: changing permissions of ‘my_script.sh’: Operation not permitted
- What’s the meaning of the parameter -e for bash shell command line?
- zip error – Nothing to do
- What does set -e mean in a bash script?
- What does set -e mean in a bash script?
- Check existence of input argument in a Bash shell script
- Associative arrays in Shell scripts
- How to split one string into multiple strings separated by at least one space in bash shell?
- Shell script not running, command not found
- source command not found in sh shell
- Linux Bash: Move multiple different files into same directory
- Difference between sh and Bash
- Integer expression expected error in shell script
- How do I know the script file name in a Bash script?
- What is the difference between double and single square brackets in bash?
- What is “-bash: !”: event not found”
- How to add a timestamp to bash script log?
- Colors in bash after piping through less?
- How to run command as user who has /usr/sbin/nologin as Shell?
- Extract substring in Bash
- Read a file line by line assigning the value to a variable
- Why do you need to put #!/bin/bash at the beginning of a script file?
- How to concatenate string variables in Bash
- -bash: syntax error near unexpected token `newline’
- -bash: syntax error near unexpected token `newline’ for display command
- How do I use grep to search the current directory for all files having the a string “hello” yet display only .h and .cc files?
- How does “cat << EOF" work in bash?
- How do I compare two string variables in an ‘if’ statement in Bash?
- How can I compare numbers in Bash?
- Is bash a programming language?
- Pass variable from one Jenkins stage to others in sh
- How to use gdb with pipes and stdin
- standard_init_linux.go:178: exec user process caused “exec format error”
- How do I edit $PATH (.bash_profile) on OS X?
- Check number of arguments passed to a Bash script
- Run a string as a command within a Bash script
- choosing between $0 and BASH_SOURCE
- Implementing shell in C and need help handling input/output redirection
- How to count lines in a document?
- What does `set -x` do?
- How to get the process ID to kill a nohup process?
- Fast ping sweep in python
- Implementation of multiple pipes in C
- tar: add all files and directories in current directory INCLUDING .svn and so on
- Linux find and grep command together
- Bash script prints “Command Not Found” on empty lines
- Bash mkdir and subfolders
- What is a simple explanation for how pipes work in Bash?
- Error handling in Bash
- Timeout a command in bash without unnecessary delay
- How to determine if a bash variable is empty?
- How do I get the current Unix time in milliseconds in Bash?
- How to run a command multiple times, using bash shell?
- Keeping a linux process running after I logout
- Can you have more than one ~/.ssh/config file?
- How to make bash scripts print out every command before it executes?
- SSH from A through B to C, using private key on B [closed]
- What does passing the -xe parameters to /bin/bash do
- Is there a way to do a remote “ls” much like “scp” does a remote copy?