1 Part Kali Linux Questions-3
1 Part Kali Linux Questions-3
1 Part Kali Linux Questions-3
Ans;
press enter then press control +C (pressing enter button is very important)
Q.No.2:- how to check all the files and directories of current directory?
q.no.2(c); how to display files or directories with human readable sizes like in
MB or KB?
q.no5(a); how to make directory with name having space like muzammal
hussain gureja?
q.no.8(a); make two files file1 and file2 in /tmp/ and write some data then
save their data in a third file file3 then make file4 with some data and again
save its data in file3.
q.no.13(c); how to read file with line number including blank lines?
q.no.13(d); how to read file with numbering but ignoring blank lines?
Q.no.23;what is tty?
q.no.25(b); how to check that how many times a specific keyword is used in a
file?
q.no.25(e); how to find a specific string in number of files with file path and
without file path in output?
q.no.25(f); how to find the file name who have a specific keyword?
q.no.25(g) make a file with few keywords then search all of these keywords in
many files at once.
q.no.25(h) how to find a keyword starting with specific letter or word like
country start with P.
q.no.25(j) how to find a keyword from 100s of files which are contain in one
directory. Or. Provide a list of keywords which are contain in one keyword file
and search this list from 100s of files.
q.no.25(k): find only words in line but exclude the lines. Just print words.
q.no.25(l). find the keyword in a file or multiple files without printing the
result.
q.no.25(n); search a word in an unknow file name but the directory path you
know. Like search “root” word in a directory /etc/
q.no.26(a); run a command lscpu and lsblk then find print the result with line
number.
q.no.26(b); run a command lscpu and lsblk then find the number of lines of
the output.
q.no.26(c); print the first 5 lines come from lscpu command with line number.
q.no,26(d); print the first 5 lines come from lscpu command with line number
then save the output in a new file in /tem/new-file
q.no.26 (e); print lines of /etc/passwd file from 31 to 35 using head and tail
commands also print lines numbers also save the output in a file name
“newfile”.
q.no.30; redirect error of this command (find / -perm -u=s -type f) in null.
q.no. 31; how to check the number of words character etc. of a text file?
q.no.33 (a); how to zip multiple files in one file using zip tool?
q.no.33(b); how to see the content of a .7z file without extracting it?