![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions Directing the flow of data to the file or from the file for input or output.Example : ls > wc Latest Answer : Whenever we run a command on shell prompt we get some output on shell prompt.In case we don't want to appear the output on the shell prompt we can redirect the output to the somewhere else. We can make the output which go into the file or may be directly ... ‘inode’, each file has a separate inode and a unique inode number. Latest Answer : The data structure that is used to maintain the In-Core Inode Information is "Inode Table". This table (logical representation) has the following information abt the file:- - type of the file - permissions on the link - Owner Id - ... Yes, wc-stands for word count.wc -c for counting number of characters in a file.wc -l for counting lines in a file. Latest Answer : Yes,It is possible to count the words,lines,characters in a file..In Unix,i used..$wc -c filename -> for characters$wc -l filename ->for lines$wc -w filename ->for words ... Yes, ‘mkfs’ is used to create a new file system. Latest Answer : Yes,mkfs -t filesystem device name.for e.gmkfs -f ext3 /dev/hda2 ... $od -cbd file_namec - character, b - binary (octal), d-decimal, od=Octal Dump. Latest Answer : to change the output in binery format the command is :%!xxd -b ... Cat displays file contents. If the file is large the contents scroll off the screen before we view it. So command 'more' is like a pager which displays the contents page by page. Latest Answer : The cut command cuts bytes, characters, or fields from each line of a file and writes these bytes, characters, or fields to standard output. If you do not specify the File parameter, the cut command reads standard input.The more command reads files and ... ‘grep’ is a pattern search command. It searches for the pattern, specified in the command line with appropriate option, in a file(s). Syntax : grep Example : Latest Answer : Grep - stands for Globally Search a Regular Expression and Print. It is used to search a given string/pattern under the given path and list out all the occurances of it in a file or set of files. Following are the options available for grep ... is the output redirection operator when used it overwrites while >> operator appends into the file. Latest Answer : ">" operator redirects the output to a file, if the file already existst and contains some data in it, the ">" would cause the data over written with new data.">>" Redirects the output to be appened to the end ... How is the command “$cat file2 “ different from “$cat >file2 Both the commands mean the same , the file file1 is read and its contents are copied to file2 What does the command “ $who | sort ‚logfile > newfile‚do? The input from a pipe can be combined with the input from a file . The trick is to use the special symbol “-“ (a hyphen) for those commands that recognize the hyphen as std input.In the above
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||