Posts Tagged ‘Linux’

Unix / Linux Commands

This item was filled under [ Linux ]

File Commands

ls
directory listing

ls -al
formatted listing with hidden files

cd dir
change directory to dir

cd
change to home

pwd
show current directory

mkdir dir
create a directory dir

rm file
delete file

rm -r dir
delete directory dir

rm -f file
force remove file

rm -rf dir
force remove directory dir

cp file1 file2
copy file1 to file2

cp -r dir1 dir2
copy dir1 to dir2; create dir2 if it doesn’t exist

mv file1 file2
rename or [...]

Continue reading...

Redirection

This item was filled under [ Linux ]

Most processes initiated by UNIX commands write to the standard output (that is, they write to the terminal screen), and many take their input from the standard input (that is, they read it from the keyboard). There is also the standard error, where processes write their [...]

Continue reading...

Tagged with: [ , ]

Linux Shell Cheat Sheet

This item was filled under [ Linux ]

File Commands

ls
directory listing

ls -al
formatted listing with hidden files

cd dir
change directory to dir

cd
change to home

pwd
show current directory

mkdir dir
create a directory dir

rm file
delete file

rm -r dir
delete directory dir

rm -f file
force remove file

rm -rf dir
force remove directory dir (use with extreme caution)

cp file1 file2
copy file1 to file2

cp -r dir1 dir2
copy dir1 to dir2; create dir2 if it doesn’t [...]

Continue reading...

Tagged with: [ , , ]

Transform user into root

This item was filled under [ Linux ]

If you are running LINUX and you do not know root password, you can become “roo” yourself
All you have to do is to type under shell command prompt this line :
sudo -i -u root
it will ask your account password, not root’s password.
type it and youre in

Continue reading...

Tagged with: [ , , , ]
Update me when site is updated