Beruflich Dokumente
Kultur Dokumente
~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~
ls -ash
ls -n
ls -R
ls -m
-------------------------------------------
cd <Directory Name>
cd ..
cd ~
Absolute path
Relative path
cd <specify path from the pwd directory />
cd log
-------------------------------------------------
interative mode
cp -i <source file> <destination file>
recursive mode
cp -R <source file> <destination file>
----------------------------------------------------
interative mode
mv -i <source file> <destination file>
------------------------------------------------------
---------------------------------------------------
Hard Link
ln <File Name> <Hardlink Name>
Soft Link
ln -s <File name> <Softlink Name>
--------------------------------------------
umask
directory - 777
file - 666
------------------------------------------------------
alias
unalias <Name>
-------------------------------
Calender
Cal
cal 10 2013
cal 2013
-------------------------------
Statistics of the File or directory
------------------------------------------
ls <Name>*
ls *<Name>
ls *<Name>*
-------------------------------------------------------
------------------------------------
~]# grep -ir sreenath /etc/ (-R, -r, --recursive, Read all files under each
directory, recursively)
-------------------------------------------------
Example
at 2:35AM Jul 10
at> mkdir /tmp/sree
at> ctrl+D
--------------------------------
~]# cat /etc/group | grep -i hero (verify the group of user "hero")
< cmd < file takes input for cmd from file
2>&1 cmd > msg cmd2>&1 sends standard output and error
-------------------------------