What do the following Unix/Linux commands do?
Is:
rm:
man:
ifconfig:
Answer:
1)
ls: This command lists the contents of directory in which we run this command. A directory may contain files or sub-directories, ls command will list all the files and sub-directories present inside current directory.
2)
rm: This command removes a file if we run it as "rm filename" . rm command can also be used to remove a directory as follows "rm -r directory_name"
3)
man: man command is used to see manual of a particular command. For example, if you run "man rm" this will display manual of rm command .i.e following Information about rm command
a) NAME b) SYNOPSIS c) DESCRIPTION d) OPTIONS e) AUTHOR f) REPORTING BUGS g) COPYRIGHT
4)
ifconfig: This command is used to see the configurations of network interfaces currently active.
Output of this command is of the following form
Where eth0 is first ethernet interface active,lo is loopback interface and wlan0 is first wireless network interface which is active.
eth0 Link encap:Ethernet HWaddr 54:53:ed:29:1d:ee
inet addr:10.252.220.187 Bcast:10.252.221.255
Mask:255.255.254.0
inet6 addr: fe80::5653:edff:fe29:1dee/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10607726 errors:1 dropped:1 overruns:0 frame:1
TX packets:3247236 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8163405878 (8.1 GB) TX bytes:372639801 (372.6 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:4125 errors:0 dropped:0 overruns:0 frame:0
TX packets:4125 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:464055 (464.0 KB) TX bytes:464055 (464.0 KB)
wlan0 Link encap:Ethernet HWaddr 84:4b:f5:da:24:7d
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
1) ls: command lists the files and subdirectories of a directory in current directory. It takes differement parameters as well like ls -a means show all including hidden files
2) rm: command iss used to remov a file or directory and sub directories. e:g rm filename. To remove a directory
"rm -r directory"
3) man: this command shows manual of a particular command. For example, "man ls" will display manual of ls command .like how to use this command etc
4) ifconfig: This command shows the configurations of network interfaces currently active.
What do the following Unix/Linux commands do? Is: rm: man: ifconfig:
(TCO 9) Every UNIX and Linux system contains full documentation of UNIX commands in the _____ pages. (Points : 5)
Compile a list (7 or more) of other commands useful for navigating or manipulating the UNIX/Linux file systems. Include a complete description of the command’s features.
When referring to the man page for finding help information on Linux commands, “man” is short for which of the following? Manual Manager Manipulate Manage Which of the following is not true when comparing man pages and info pages? Info pages often read more like a tutorial; man pages read more like documentation. Info pages are more user friendly, but also require more work for developers to create. Often a command will have an info page but not a man...
Linux / Unix: Please explain in details if you can. Thanks. Write find commands for the following. No need to submit execution output. 3. To find all files from current directory that have not been modified in the past three days 4. To find all files from /bin that are owned by root 5. To find all files from /etc that have the inode number 87539084
Objective: Practice common UNIX commands. Procedure: The following list of Unix commands are given for self-learning. Use 'whatis' or 'man' command to find out about each command. Your document should include the description or screen shots of the output from each of the command. Commands: df du gzip file history wget Changing access rights: chmod u+x Dir1.0 adds execute permission for the owner chmod go-w file1 removes write permission for the group and others chmod ugo=rw testfile sets...
what do the following shell commands do 1) rm Project* 2) ls File[0-9][0-9] 3) rm [A-Z]???
UNIX/LINUX: Read the man page for tcpdump and provide the command and accompanying options required to read the file named /tmp/tcpdump.dmp, suppress name resolution (avoid DNS lookups), and print each packet in both hex and ASCII. Please only respond if you know the answer.
Revision Question 3 on Linux. Please explain the shell script commands in the context of post execution. You have just logged in and have a directory called "novel" in your home directory containing the following files: chapter1.docx chapter2.docx chapter3.docx draft.pdf save where "save" is itself a directory and contains the files Attributes.txt draft.pdf.1 draft.pdf.2 draft.pdf.3 indexA.txt indexB.txt list1.txt list2.txt a) Describe the results you would expect when executing the following shell commands: i) ls novel/save/*A* ii) ls novel/*r[23]* iii) rmdir...
You create a subfolder named "MyFolder" in your home folder on a UNIX-based OS (Linux, macOS). List what you, those in the same group as owns the file, and everyone else can see and do in this folder after each of the following commands are executed: chmod ugo+rw MyFolder chmod 777 MyFolder chmod 732 MyFolder chmod g-x MyFolder chmodrw,+X MyFolder
Computer Security Investigate the meaning of all metacharacters used by the Linux/UNIX Bourne shell, which is commonly used by scripts running other commands on such systems. Compare this to that used by other common shells such as BASH or CSH. What does this imply about validation checks used to prevent command injection attacks?