AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.

Slides:



Advertisements
Similar presentations
Introduction to the Omega Server CSE Overview Intro to Omega Basic Unix Command Files Directories Printing C and C++ compilers GNU Debugger.
Advertisements

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Lab6 CPCS361 I.Mona Alshehri. Working with Files and Directories Creating files Create a file with the cat command type the command cat > name_of_file.
Cosc 4750 Getting Started in UNIX Don’t be afraid of the prompt, in linux it can be your best friend. In some cases, the only way to do certain things.
Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 27 th, 2009 Essential Unix Commands.
Working Environment - - Linux - -.
Linux & Applications Sean GavinWayne State University multi-user environment -- log in: user name and password -- you never turn the computer on or off.
T UTORIAL OF U NIX C OMMAND & SHELL SCRIPT S 5027 Professor: Dr. Shu-Ching Chen TA: Samira Pouyanfar Spring 2015.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Unix Workshop Aug What is Unix Multitasking, multiuser operating system Often the OS of choice for large servers, large clusters.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
A crash course in njit’s Afs
SoftwareTools CGS 3460, Lecture 7 Jan 25, 2006 Zhen Yang.
The Unix Environment and Compiling. Getting Set Up Your programs will be compiled and tested on the Departmental server ‘linprog’ The linprog servers.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
CSN08101 Digital Forensics Lecture 1B: Essential Linux and Caine Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
Carnegie Mellon Linux Boot Camp Jenna MacCarley, Peter Pearson, Shashank Goyal 9/19/2015.
TAMU CSCE 313 (the basics). Basic Unix/Linux programming Accessing CS systems  PuTTY (putty.exe) – a Telnet and SSH client  Common hosts: unix.cs.tamu.edu.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
Next Unix Topics Tuesday, 2/11 & 18/2014. Change Password (by 2/14/14) ssh to account on – faclinux.cse.ohio-state.edu – stdlinux.cse.ohio-state.edu passwd.
Second edition Your UNIX: The Ultimate Guide Das © 2006 The McGraw-Hill Companies, Inc. All rights reserved. UNIX Commands cal – will print a calendar.
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang.
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
Intro to Programming Environment 1. Today You Will Learn how to connect to a machine remotely with “nomachine NX client” Learn how to create a new “source.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
Introduction to Programming Using C An Introduction to Operating Systems.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop III - Part A Shell Commands Professional Training.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Unix Fundamentals CS 127. File navigation cd - change directory cd /var/log cd /etc/apache2 cd ~/Desktop ~ is a shortcut for the home directory.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Intro to GNU/Linux See, Stallman? I said GNU. Are you happy now?
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
Tutorial Six Linux Basics CompSci Semester Two 2016.
By Jonathan Rinfret UNIX/LINUX By Jonathan Rinfret
ENEE150 Discussion 01 Section 0101 Adam Wang.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
SEEM3460 Tutorial Unix Introduction.
Tutorial of Unix Command & shell scriptS 5027
CS1010: Intro Workshop.
Getting started with CentOS Linux
Tutorial Six Recap & Linux Basics CompSci Semester Two 2016.
Andy Wang Object Oriented Programming in C++ COP 3330
Some Linux Commands.
Useful Linux Commands.
Introduction to Linux Dr Karina Kubiak - Ossowska
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
Intro to UNIX System and Homework 1
SEEM3460 Tutorial Unix Introduction Xinshi Lin & Zihao Fu
Web Programming Essentials:
Tutorial of Unix Command & shell scriptS 5027
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Tutorial Unix Command & Makefile CIS 5027
Java Tutotrial for [NLP-AI] 2
DIBBs Brown Dog Tutorial Setup
Presentation transcript:

AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG

WHAT IS UNIX? Operating system developed in the 1960s Still being developed Usually Command line based Multiuser and multitasking You can read more about UNIX here:

USEFUL SOFTWARE FOR CONNECTING TO REMOTE MACHINE PuTTY: Free SSH Client – Allows you to remotely connect to another machine in a secure way Filezilla: Free FTP Software – Allows you to transfer files to and from another machine

HOW TO GET TO THE TERMINAL IN KALI

HOW TO NAVIGATE ls (list) – this command shows all the files and subdirectories of your current directory. ls –hal : better version (human readable, all, long listing format). cd (Change Directory): this command changes your directory to the specified one. Example %cd desktop will take you to the desktop directory Example %cd.. Will take you to the parent directory pwd (print working directory): shows you where you are in relation to the whole file system.

HOW TO CREATE NEW DIRECTORY(FOLDER) mkdir (make directory): Allows you to create a directory(folder) in your current directory Similar to right clicking and choosing new folder in windows Example: mkdir newdirectory

HOW TO VIEW CONTENTS OF A FILE cat (concatenate): displays contents of the file to the screen Example: %cat randomfile.txt less: displays contents of the file to the screen a page at a time Example: %less randomfile.txt [space-bar] to visit next page, [q] to quit

HOW TO SEARCH A FILE FOR KEYWORDS Grep: searches files for specific words or patterns Example of searching for the word password in passwords.txt: %grep password password.txt Example of searching for a phrase in password.txt: %grep ‘my password’ password.txt Example of search for a phrase in a directory: grep -R 'string' dir/

UNIX TEXT EDITORS Nano: very simple to use editor, we will be using nano in our tutorial Vim: a bit more complex to use but it is very powerful and very rewarding when mastered

HOW TO TOUCH Touch: creates a empty file %touch me.txt

CREATE A FILE USING NANO %nano filename Example c file: %nano sample.c Example c++ file: %nano sample.cpp Example java file: %nano sample.java

SAVING A FILE IN NANO Press ctrl-o to save the file Press ctrl-x to exit nano will ask you if you want to save, press y to save press n to not save It will prompt you to enter a file name After editing the file name, you can press enter

HOW TO COMPILE A C FILE IN UNIX gcc filename.c This will create an executable called a.out You can run the executable by running./a.out gcc filename.c –o executablename This will create an executable with whatever name you specify You can run the executable by running./executablename

HOW TO COMPILE A C++ FILE IN UNIX Very similar to c g++ filename.cpp This will create an executable called a.out You can run the executable by running./a.out g++ filename.cpp –o executablename This will create an executable with whatever name you specify You can run the executable by running./executablename

HOW TO COMPILE A JAVA PROGRAM IN UNIX javac filename.java This will create a.class file called filename.class java filename This will run the application

HOW TO DELETE A FILE %rm filename: deletes the file

HOW TO DELETE A DIRECTORY %rmdir directoryname: removes the directory %rm -rf directoryname: removes the directory and its contents

WANT TO LEARN MORE? HERES SOME GREAT RESOURCES UNIX Tutorial for Beginners: Learn UNIX the hard way: