Ubuntu Working in Terminal

Slides:



Advertisements
Similar presentations
I/O & Perintah Dasar Linux Onno W. Purbo
Advertisements

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.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
CSE 303 Lecture 2 Introduction to bash shell
7/17/2009 rwjBROOKDALE COMMUNITY COLLEGE1 Unix Comp-145 C HAPTER 2.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  Currently there.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Notes Assignment #1 is due next Friday by 11:59 pm via Test #1 will be held Thursday February 18 at the start of class (one period long) Format:
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.
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Ch 21 Command Syntax Using the DIR Command with Parameters and Wildcards.
Unix Basics Chapter 4.
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
The UNIX development environment CS 400/600 – Data Structures.
Vim Editor and Unix Command gcc compiler Computer Networks.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
Chapter 1 : The Linux System Part 2 Lecture 2 11/14/
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
Week 8: Linux / ubuntu Dr. I. H. Shah. / CSCS 301 Fall 2009.
Linux+ Guide to Linux Certification, Third Edition
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop III - Part A Shell Commands Professional Training.
More on Using onyx 8/28/13. Program 1 Due a week from today. See website for details.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
1 Introduction to Unix. 2 What is UNIX?  UNIX is an Operating System (OS).  An operating system is a control program that helps the user communicate.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Basic Unix Commands. Listing files and directories ● ls:command is used to list the files and ● directories in present working directory ● ls command.
File Management commands cat Cat command cat cal.txt cat command displays the contents of a file here cal.txt on screen (or standard out).
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.
ULI101 Week 02. Week Overview ● Unix file system ● Types of files ● File naming rules ● Hidden files ● Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm.
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
Yep, you need to know this
GRID COMPUTING.
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.
Tutorial of Unix Command & shell scriptS 5027
CS1010: Intro Workshop.
Getting started with CentOS Linux
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Linux Commands Workout 1
Prepared by: Eng. Maryam Adel Abdel-Hady
Linux 101 Training Module Linux Basics.
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
The Command Prompt Commands are the way to “do things” in Unix
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands:
Command Line Interface for Beginners
9 Linux on the Desktop.
Assignment Preliminaries
CSE 374 Programming Concepts & Tools
Users and Accounts Lab 0.1. Users and Accounts Lab 0.1.
Tutorial of Unix Command & shell scriptS 5027
Introduction to UNIX.
Tutorial of Unix Command & shell scriptS 5027
Command Syntax Chapter 2 Using the DIR Command with
Intro to UNIX System and Homework 1
Introduction to UNIX UNIX developed at Bell Labs in 70s
Tutorial of Unix Command & shell scriptS 5027
Run Java file with Window cmd
Getting started with CentOS Linux
Tutorial Unix Command & Makefile CIS 5027
Command line.
Module 6 Working with Files and Directories
Java Tutotrial for [NLP-AI] 2
Lab 2: Terminal Basics.
Linux Commands LINUX COMMANDS.
A shell is a user interface.
Presentation transcript:

Ubuntu Working in Terminal Lab 3

Opening Terminal By default terminal is available in GUI mode in Ubuntu 16.10. To open terminal easiest way is to 'search' function on the dash. Dash -> Search for Terminal Command ctrl+alt+t

Ubuntu File and Directories Creating Files/Directories Moving Files/Directories Copying Editing text files

Creating folders Command to create a directory: i.e mkdir mnt mkdir /Path where the directory is to be created i.e mkdir mnt

Verify the newly created folder Command ls It will list down all files and folders from the given path Refining ls command Ls –la(It will show details)

Creating New File Command is touch To verify we can use touch /path where to be created.file extention i.e touch mnt/test.txt To verify we can use ls command

Deleting files Command to delete rm /Path of the file to be deleted i.e rm mnt/test.txt

Deleting folders and their sub-folders rm -rf /Path of the directory to be deleted options '-r' which means recursive and '-f' means force

Backing up /Copying your files cp /source path/file name /Destination path /file name. i.e cp /mnt/test.txt /opt/test1.txt

Backing up / Copying your Directories cp -r /directory/to/be/copied/ /where/to/copy/to/ i.e cp /mnt/test.txt /opt/test1.txt

Moving Directories i.e mv /mnt/test /opt Command to move mv Command format mv /source /destination i.e mv /mnt/test /opt

Moving Files i.e mv /mnt/test.txt /opt Command to move mv Command format mv /source Directory/file name.ext /destination i.e mv /mnt/test.txt /opt

Saving or editing in a file Go to the file path Cd /folder name/ Now Vi test Press insert Enter text “Hello World” To save changes in file Press escape, then type “:wq!”

Class Work Create a directory using terminal in mnt folder with Directory name BSCS Create a file with your own name in BSCS folder Add text “Welcome to SZABIST” in the same file Copy this file to OPT folder with the name BSCS-Copy

Command prompt The command prompt indicates that the system is ready to accept commands. Examples include: [user@host dir]$ dir$ $ #

Command prompt The dollar sign ($) usually means you are logged in as a regular user. The hash sign (#) usually means you are logged in as root.

Some useful commands passwd: Change your password. date, cal: Find out today's date and display a calendar. who: Find out who else is active on the system. clear: Clear the screen.

Changing password The passwd command allows you to change your password Command Passwd (username) i.e passwd root This will change the password of your root account.

The date command The date command shows the current date and time. Date (enter) Possible Output (Current date of the system)

The cal command The cal command is used to view calendar Syntax of the command Cal [Moth] [Year] Example: cal 02 2010

The clear command The clear command clears your screen. Syntax of the Command clear (Enter)

The ls command The ls command lists available file and directories. Syntax of the Command ls (Enter) Some other extensions ls /dev This command will list down all hardware devices available on the system.

Thank you 