-
Connect Remote Terminals
What is the command to connect to remote terminals?
-
How to grep directories
How to grep directories has reached above 80% from the df output using basin grep command.below are the steps i have used
df -h > date.ksh
grep "%" date.ksh >space.ksh
cut -c 40-44,45-80 space.ksh > %.ksh
grep "[80-10][0]%" %.ksh
see the output after above cmd
$ grep "[80-10][0]%" %.ksh
100% /opt/tivoli/tsm
80% /prod/users/edw -
Find First Word of the First Line
How to find first word of the first line of the first ten files?
-
What is the difference between grep and find commands?
A)provides information on helpb)grep searches in a file whereas find searches for files and directories.c)both a) and b)d) none of the above
-
-
-
-
-
-
Hard link and Soft link
What is the difference between hard link and soft link?
-
What is the use of the command "ls -x chapter[1-5]"?
Ls stands for list; so it displays the list of the files that starts with 'chapter' with suffix '1' to '5', chapter1, chapter2, and so on.
-
What is the difference between cat and more command?
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.
Ans