sir
can any body tell me how i can copy files like
copy c:\abc\pqr\mr.txt c:\windows\my documents\this.txt
i need command in linux like this
really i am a new in linux that is why simple questions
alson can any body explain me how i get current directory tree or path
in windows... (2 Replies)
How can we copy a command string from a previous command line and paste it into the cursor position on the current command line? I know that ^c will not work as the shell will interpret as an interrupt signal.
Thanks, (1 Reply)
i want to search in the current directory all the files that contain one word for example "hello"
i want to achieve it with the grep command but not with the grep * (2 Replies)
Hello,
I have a directory in which I have files as follows
CRDT.csv
CRDT.csv.1
CRDT.csv.2
....
CRDT.csv.n
I would like to copy it over to another directory as
crdt_lon.csv
crdt_lon.csv.1
crdt_lon.csv.2
....
crdt_lon.csv.n
I am looking for a one line command but I am... (5 Replies)
I am new to this forum. I have a script which randomly throws error.Following are steps followed in this script:
Generate Term file
Remove previous term and rpt files from utility directory.
copy term file to utility directory
call sql to generate rpt file using term file as input
copy the... (4 Replies)
Hello,
I am running below command as root user
#nodetool cfstats tests | grep "Memtable switch count"
Memtable switch count: 12
Where as when I try to run same command as another user it gives different result.
#su -l zabbix -s /bin/bash -c "nodetool cfstats tests | grep "Memtable switch... (10 Replies)
Hi ,
I am trying to take a backup of file before overwriting it with cp command, I am using the command cp -b.
-rw-rw-r-- 1 autoengine murex 0 Jan 22 07:08 a
-rw-rw-r-- 1 autoengine murex 0 Jan 22 07:08 b
cp -b a b
-rw-rw-r-- 1 autoengine murex 0 Jan 22 07:08 a
-rw-rw-r-- 1... (1 Reply)
Discussion started by: Raj999
1 Replies
LEARN ABOUT BSD
mcopy
MCOPY(1) General Commands Manual MCOPY(1)NAME
mcopy - copy MSDOS files to/from Unix
SYNOPSIS
mcopy [ -tnvm ] sourcefile targetfile
mcopy [ -tnvm ] sourcefile [ sourcefiles... ] targetdirectory
DESCRIPTION
Mcopy copies the specified file to the named file, or copies multiple files to the named directory. The source and target can be either
MSDOS or Unix files.
The use of a drive letter designation on the MSDOS files, 'a:' for example, determines the direction of the transfer. A missing drive des-
ignation implies a Unix file whose path starts in the current directory
Mcopy will allow the following command line options:
t Text file transfer. Mcopy will translate incoming carriage return/line feeds to line feeds.
n No warning. Mcopy will not warn the user when overwriting an existing file.
v Verbose mode.
m Preserve the file modification time.
If the target file already exists, and the -n option is not in effect, mcopy asks whether or not to overwrite the file.
MSDOS subdirectory names are supported with either the '/' or '' separator. The use of the '' separator or wildcards will require the
names to be enclosed in quotes to protect them from the shell.
The mcd command may be used to establish the device and the current working directory (relative to MSDOS), otherwise the default is A:/.
SEE ALSO mcd(1), mread(1), mwrite(1)BUGS
Unlike MSDOS, the destination directory may not be omitted.
The '+' operator (append) from MSDOS is not supported.
No other Mtools command requires the use of a drive letter designation on MSDOS files.
local MCOPY(1)