Skip to main content

Posts

Command Lines Part 2

Converting Files Images Convert from jpg to png? $ convert image.jpg image.png         Networking Stuff Arp Have a look at who on the network own which IP address: $ arp     Ping Is a server alive? $ ping 8.8.8.8     Traceroute Where are the network issues between us and them? $ traceroute www.nuim.ie     Nmap Scan the local 255 host subnet. $ nmap 192.168.1.0/24     1-Liners What is the total disk size of all MarkDown files in my homedir? $ find ~ -name "*.md" | xargs du -ch       Generate numbers in a random order echo {01..10} | sed 's/ /\n/g' | shuf -            

Command Line Part 1

Lecture 01 Commands Line introduction Let's find all HTML files: $ find . -name "*.html"   Extended Eg Let's ensure that all our html files use HTML5 $ find . -name "*.html" -exec grep -i 'doctype' {} \;     Commands ls The command ls lists the files in a directory. The command is documented in the manual $ man ls (Hint: type q to quit the manual). Options Most commands take options. For example: -a, --all do not ignore entries starting with . -1 list one file per line. Avoid '' with -q or -b So we may $ ls -a -1 $ ls -a1 $ ls --all -1   Piping Piping using the | allows combining commands. $ rpm -qa lists all the installed packages on a RedHat/Fedora system. $ rpm -qa | grep -i "Acrobat" searches the list to see if the Acrobat PDF reader is installed.  Note: the try with acrobat doesnt work because I do not have install any PDF sin...

CI178 Introduction

CI178: Laboratory Sessions and Assessment In this weekly posts we will be doing all the laboratories from the CI178 and saying what we have learned from it followed by screenshots that prove our work. Week 1: Introduction to Linux and eclipse Linux: Is an operating system kernel is part of an operating system that implements:  -User/Superuser distinction  -the idea of processes  -protection of hardware resources. Eclipse: -is an IDE for multiple languages such as Java, C++ and JavaScript -Cross-platform, meaning that it runs on OS X Eclipse can: -Load an existing project -Edit a code -Run a project -Debug a project