Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,201,177 members, 7,977,445 topics. Date: Thursday, 17 October 2024 at 08:17 AM |
Nairaland Forum / Science/Technology / Programming / Help With Assignments On Linux (454 Views)
Zed On Linux / Need Help On Linux Installation On Windows Laptop / Cocos2d-x Installation On Linux (2) (3) (4)
Help With Assignments On Linux by rowrowland: 9:34am On Jan 13 |
I need help with my practical assignment on Operating Systems course. The questions revolve around: 1. Analysing the behaviours of three Linux commands (cp, remove and cat); 2. Memory exploitation techniques. If you're capable in these areas pls let me know. I go pay some small money oo |
Re: Help With Assignments On Linux by john1101(m): 10:08am On Jan 13 |
Hit me up I can help you with this. ... |
Re: Help With Assignments On Linux by Deicide: 1:51pm On Jan 13 |
why don't you leverage ChatGPT? 1 Like |
Re: Help With Assignments On Linux by guysbewise: 3:56pm On Jan 13 |
ChatGPT is your friend https://chat.openai.com Certainly! Let's analyze the behaviors of three commonly used Linux commands: cp, rm (remove), and cat. cp (Copy): Purpose: The cp command is used to copy files or directories from one location to another. Syntax: cp [options] source destination Example: cp file.txt /path/to/destination/ Behavior: Copies the specified source file or directory to the destination. If the destination is a directory, the source is copied into that directory. Can be used to copy multiple files or directories simultaneously. Common options include -r for recursive copying and -i for interactive mode. rm (Remove): Purpose: The rm command is used to remove (delete) files or directories. Syntax: rm [options] file(s) or directory(s) Example: rm file.txt Behavior: Deletes the specified file or directory. Use the -r option for recursively deleting directories and their contents. The -f option can be used to force deletion without confirmation. Exercise caution, as deleted files are usually not recoverable, and the operation is irreversible. cat (Concatenate): Purpose: The cat command is used to concatenate and display the content of files. Syntax: cat [options] file(s) Example: cat file1.txt file2.txt Behavior: Concatenates the content of one or more files and displays it on the standard output (usually the terminal). It can also be used to create a new file by combining the content of existing files. Commonly used with other commands and operators for various text manipulation tasks. Options include -n to number lines and -A to show all non-printing characters. These commands are fundamental in managing and manipulating files and directories in a Linux environment. It's important to use them with caution, especially rm, to avoid unintentional data loss. Always double-check your commands, particularly when using options that can have irreversible effects. 1 Like |
Re: Help With Assignments On Linux by rowrowland: 8:51am On Jan 14 |
Deicide:Thanks but this is not a theoretical work ... we are to exploit an OS ..and much more |
Re: Help With Assignments On Linux by airsaylongcome: 8:32pm On Jan 14 |
rowrowland: This has to be the funniest comment here. "...this is not theoretical work..." How the hell can you "exploit an OS" when it's blatantly clear that you do not have a basic knowledge of Linux commands |
Re: Help With Assignments On Linux by BRATISLAVA: 8:37pm On Jan 14 |
airsaylongcome: But these are very dangerous Linux commands he needs help with. |
Re: Help With Assignments On Linux by airsaylongcome: 11:17pm On Jan 14 |
BRATISLAVA: The only real dangerous command here is the rm command. And it's dangerous only if used recklessly. My grouse with the OP is that they a criticizing a response as "theoretical" when it doesn't sound like they even have a basic knowledge of Linux commands. Literally wants someone to spoon feed them. |
Re: Help With Assignments On Linux by BRATISLAVA: 6:30am On Jan 15 |
airsaylongcome: Expected something worse than foundation shell commands. Can't wait for him to get to ports. I hope he keeps us updated with his assignments. |
Re: Help With Assignments On Linux by guysbewise: 11:16pm On Jan 15 |
BRATISLAVA: With chatGPT Linux ports commands are now child's play: netstat: netstat -tulpn: Lists all listening ports along with the processes using them. ss (Socket Statistics): ss -l: Displays listening sockets. ss -t -a: Shows all TCP sockets. nmap (Network Mapper): nmap <target>: Scans open ports on a target machine. nmap -p <port> <target>: Scans a specific port on a target machine. telnet: telnet <hostname> <port>: Tests connectivity to a specific port on a remote server. lsof (List Open Files): lsof -i: Lists all open network connections. iptables: iptables -L: Shows the current firewall rules, including port-based rules. firewalld: firewall-cmd --list-ports: Lists all open ports managed by firewalld. nc (Netcat): nc -zv <hostname> <port>: Checks if a port is open on a remote machine. socat: socat TCP-LISTEN:<local-port>,reuseaddr,fork TCP:<target-host>:<target-port>: Forwards traffic from a local port to a remote host. tcpdump: tcpdump port <port>: Captures network traffic on a specific port. lspci: lspci -nnk | grep -i net: Lists PCI devices, including network adapters. |
Re: Help With Assignments On Linux by rowrowland: 11:42pm On Jan 15 |
Thanks all, I got my assignment sorted. I think i'm too old to start learning Linux now when it may never bring food to my table. I just needed to pass the course anyhow. I got an intern in my office to sort it out. |
Re: Help With Assignments On Linux by BRATISLAVA: 3:34pm On Jan 16 |
guysbewise: Are you the OP? |
Re: Help With Assignments On Linux by studyless123: 8:01pm On Jan 16 |
rowrowland: Good you got it sorted out. However you're not too old to learn, you're not interested. |
Re: Help With Assignments On Linux by guysbewise: 12:45pm On Jan 17 |
BRATISLAVA: Did OP ask you about Linux ports? |
(1) (Reply)
Learn Data SCIENCE For 3 Months / Shop Zara, Fashionnova, Asos & Lasenza And Others From Nigeria / The Best Online Business Booster Services In Benin City 2020
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 27 |