Thursday, 11 January 2018

Basic UNIX Commands

mkdir <directoryname>
->makes directory
*Names are case sensitive


Cd <directoryname>   ->to change directory
cd.. ->moves one step back

cd=>changes to home dirctory


mkdir -p test1/test2/test2

will create the hierarchy


mkdir -v test1/test2/test2d test1

will show messages like create

created test2
created test3

-----------
 mkdir test1 test2 test3
=>creates 3 directory

rmdir  test1
=>directory not empty

touch command
=>for creating empty file

touch file1

cat >file1

write sometjing 

cntl d


cat >>file1

write something
new data





ls==>listsls files and foldes

blue are directory
back are files


to see properties of files/folders
ls -l   shows multicolumn data


-d states dictionary
-  states its a file




pwd
=> Shows present working directory

ls
=>lists the contends

cp
=>copy

mv
=>move


grep

finding some text present in a file




locate

finding the file itself


touch
easy way to create new empty file


cat
for creating and appending to file


tar

chmod


history
Shows Previously used commands


finger
finfds info about logged in users









who=>logged in users

who am i=>ur identity


to know what shell u r using
echo $SHELL

type ps
=>tell where pgm for type is stored


ps is /bin/ps


clear clears screen

head

tail


No comments:

Post a Comment

Spring Boot : Exception Handler 14