Top Unix Commands for Beginners – Part 1

Top UNIX Commands

cat – display or concatenate files

cd – change directory

chmod – change the permissions on a file or directory

compress – compress a file

cp – copy a file date – display the current date and time

diff – display differences between text files

echo – echo arguments to the standard output

file – determine the type of a file

find – find files of a specified name or type

finger – display information about a user

ftp – file transfer program

grep – searches files for a specified string or expression

kill – kill a process

lpr – print out a file

ls – list names of files in a directory

man – display an on-line manual page

mkdir – make a directory

more – scan through a text file page by page

mv – move or rename files or directories

nice – change the priority at which a job is being run

passwd – change your password

ps – list processes

pwd – display the name of your current directory

quota – disk quota and usage

rm – remove files or directories

rmdir – remove a directory

sort – sort and collate lines

talk – talk to another user

wc – display a count of lines, words and characters

cat – display or concatenate files

cat takes a copy of a file and sends it to the standard output (i.e. to be displayed on your terminal, unless redirected elsewhere), so it is generally used either to read files, or to string together copies of several files, writing the output to a new file.

cat ex displays the contents of the file

ex. cat ex1ex2 > newex

creates a new file newex containing copies of ex1 and ex2, with the contents of ex2 following the contents of ex1.

Related Posts

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.