Common UNIX Commands - Common UNIX Commands Common UNIX...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Common UNIX Commands
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Common UNIX Commands There are many UNIX commands that can be very useful They output of one can be connected to the input of the other using PIPES They are part of the UNIX distribution. Open source impementations exist and they are available in Linux.
Background image of page 2
ls – list files and directories ls <options> file list Examples ls –al - Lists all files including hidden files (files that start with “.”) and timestamps. ls –R dir - Lists recursively all directories and subdirectories in dir.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
mkdir – Make a directory mkdir <options> dir1 … Examples mkdir dir1 Create directory dir1 mkdir –p dir1/dir2/dir3 Make parent directory an subdirectories if it they do not exist.
Background image of page 4
cp – Copy files cp <options> file1 file2 … destdir Copies one or more files to a destination. Examples: cp a.txt dir1 Copies file a.txt into dir1 cp a.txt b.txt Create a copy of a.txt called b.txt cp –R dir1 dir2 Copy recursively directories and subdirectories of dir1 into dir2.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
mv file1 destdir Moves file1 to destdir
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/30/2012 for the course CS 252 taught by Professor Gustavorodriguez during the Fall '11 term at Purdue University-West Lafayette.

Page1 / 17

Common UNIX Commands - Common UNIX Commands Common UNIX...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online