0% found this document useful (0 votes)
49 views

Summary of UNIX Commands

UNIX is a powerful and stable operating system. The kernel is the core of the UNIX operating system and is protected by the shell. Users need to log in before accessing UNIX commands. Some standard UNIX commands include cat to display file contents, cd to change directories, cp to copy files, cal to show calendars, date to show the date, ls to list files, mkdir to create directories, pwd to show the working directory, rm to delete files, and touch to modify file timestamps.

Uploaded by

sureshexecutive
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

Summary of UNIX Commands

UNIX is a powerful and stable operating system. The kernel is the core of the UNIX operating system and is protected by the shell. Users need to log in before accessing UNIX commands. Some standard UNIX commands include cat to display file contents, cd to change directories, cp to copy files, cal to show calendars, date to show the date, ls to list files, mkdir to create directories, pwd to show the working directory, rm to delete files, and touch to modify file timestamps.

Uploaded by

sureshexecutive
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

UNIX A Powerful & a stable Operating system

UNIX Architecture

Note: The ernel is the core of the UNIX operating system! "ernel is protecte# by $hell! %efore you can #o much with a UNIX system& you nee# to log in to it! A summary of UNIX comman#s'stan#ar# utility programs a(ailable on most UNIX systems! cat filename display the content of file filename c# [dirname] change directory to dirname. If dirname is omitted, change to your home directory. cp source destination copy file source into file destination. cal )**+ show the timetable of 2007 #ate show system date c# !! go back one level c# !!'!! go back two levels
[51]

c# go to home directory cp file file ls !l show details of files and directory m #ir dir create a directory called "dir " pw# show the path of work directory rm #f file delete file called "file " rm #rf dir remove a directory called "dir " and contents recursively touch modify the timestamp of the file or directory

tree show the files starting from $ % $ which &uni' cmd( shows the location%path of the uni' command fin# % #name &name of the file( find the file of the root directory pwc check correct synta' and file format of "%etc%passwd" and users e'istence tar ,c(f archi(e!tar file- file) #ircreate an archive containing "file ", "file2" and "dir " tar ,.(f archi(e!tar e'tract a tarball
[52]

b/ip) file- file-!b/) compress a file called "file " bun/ip) file-!b/) decompress a file called "file .b)2" g/ip file- file-!g/ compress a file called "file " gun/ip file-!g/ decompress a file called "file .g)" /ip file-!/ip filecreate an archive compressed in )ip un/ip file-!/ip decompress a )ip archive more filename One screen file at a time m( filename1 filename2 moves a file *i.e. gives it a different name, or moves it into a different directory rm filename removes a file wc filename tells you how many lines, words, and characters there are in a file who tells you who"s logged on finger username gives you lots of information about that user whoami returns your username

[53]

You might also like