5,475 views
2 2 votes

Which of the following commands or sequences of commands will rename a file x to file y in a Unix system ?

  1. mv y, x
  2. mv x, y
  3. cp y, x (rm x)
  4. cp x, y (rm x)
  1. II and III
  2. II and IV
  3. I and III
  4. II only

2 Answers

Best answer
8 8 votes

ans is B

Expalantion:

The mv command is used to move or rename files.

mv renames file SOURCE to DEST, or moves the SOURCE file (or files) to DIRECTORY.

cp = copies files from one location to another

rm : deletes a file without confirmation (by default).

Therefore cp x, y // will copy x to y

ans rm x // will deletes the file 

selected by
–3 –3 votes
ans c)
Answer:
Position:
Show:

Related questions

3 3 votes
1 answers 1 answer
3.9k
3.9k views
Ishrat Jahan asked Nov 2, 2014
3,901 views
Given below are several usages of the anchor tag in HTML.<A HREF = "http://www.gate.ac.in/HTML/BASIC/testpage.html">Test Me</A><A HREF = "/BASIC/testpage.html">Test Me</A...
49 49 votes
8 answers 8 answers
29.0k
29.0k views
Ishrat Jahan asked Nov 2, 2014
28,974 views
Consider a parity check code with three data bits and four parity check bits. Three of the Code Words are $0101011, 1001101$ and $1110001.$ Which of the following are als...
5 5 votes
4 answers 4 answers
10.9k
10.9k views
Ishrat Jahan asked Nov 2, 2014
10,910 views
Consider a 10 Mbps token ring LAN with a ring latency of 400 µs. A host that needs to transmit seizes the token. Then it sends a frame of 1000 bytes, removes the frame af...
32 32 votes
4 answers 4 answers
21.3k
21.3k views
Ishrat Jahan asked Nov 2, 2014
21,294 views
A serial transmission $T1$ uses $8$ information bits, $2$ start bits, $1$ stop bit and $1$ parity bit for each character. A synchronous transmission $T2$ uses $3$ eight-b...