Cp /usr/my/first12
- This command copies the file “first12″
Related posts:
- How to show the list of file and directories? Ls stands for the List, this command is used to show the information about files and directories Ls It shows the list of files in your current working directory Ls-a -a option is used to show the list of all files including hidden files. Ls-l The –l option used to...
- What are the Unix file type ? – > Indicates a file b > shows the block special file c > A character special file l > A link d > shows the plain directory s > A semaphore p > A named pipe m > shared memory...
- What is the use of cat command? Cat stands for concatenate, the cat command used to view text files....
- What are the various option used with “cat” commands? Cat/etc/passwd This command shows the “etc/passwd...
- What are option available with the “more” ? 1.[spacebar] – display the next screen of information. 2.[Enter] – Display one more line of information. 3.q – “quit...
- How to search the text string in files ? The “grep” command used to search the string in the one or more files....
- What is the various options available with “grep” Grep ‘Test lead’ /etc/passwd This command searches for all the occurrence of the text string “Test lead”...
- How to find the entire occurrence in all the files of directory? Grep ‘jain’ * this commands searches for all the occurrence of the text string ‘jain’ within all files of the current directory....
- How to copying files and directories? The “cp” command is used to copy files and directories....
- How to find the number of occurrence in the file? Grep ‘Test lead’ filename.txt This command searches for all the occurrence of the text string “Test lead” in file “filename.txt” We can also use wildcard character to search in multiple files....