Skip to main content

Basic Linux Commands On Terminal


Change Directory

cd file_dir

Create Directory

mkdir file_dir

Delete Directory 

rm -rf file_dir

Create/Write File

nano my_file.txt (from nano editor)
vi my_file.txt (from vi editor)
vim my_file.txt (from vim editor)

Delete File 

rm my_file.txt

View File

cat my_file.txt

View Zip File content

zcat /tmp/excise_1/ivr-2.log.gz

Get File Properties

file my_file.txt

Show only log entries which contain text field

cat /var/log/audit.log | grep Error

Rename File / Move File

mv my_file_oll.txt my_file_new.txt

Copy File

cp my_file.txt /tmp/

Copy Directory

cp -r /tmp/dir /home/new_dir

SSH 

ssh username@ip
ssh global_info_portal@192.234.87.87

SCP

scp filename username@ip:/server_location
scp /tmp/my_file.txt global_info_portal@192.234.87.87:/tmp

Disk Space

df -h

Ram Detail

free -m

View Process

top

Kill process

kill -9 process_id
when using top command its second column number is process id.
kill -9 1998

Download File

curl http://example.com --output my.file


Comments

Popular posts from this blog

HD Car wallpapers pack

                                                                 Download

Will wolverine have his metal claws back???

We all love wolverine, that's a fact. His regeneration powers makes him unstoppable yet his adamantium metal claws alongside his agility strength, speed, cunningness and feral instincts made him the ferocious beast he is. Of course he is still fearsome even with his weak bone claws but Wolverine is just incomplete without his adamantium claws. Now the big question: will he get'em back?   During the final fight in the last movie "The Wolverine", Logan-San had his adamantium claws sliced clean off by The Silver Samurai, leaving him with organic born claws that grow back through the stubs of the adamantium coating.    Now if he going to have his adamantium claws back, how? The most popular guess is 'Magneto' happens and he restore Logan-boy's claws. Let's not forget, we have seen that the cut-off claw part are preserved in the last movie. And with the Magneto's ability to manipulate metal, this might be as easy as walk in the park.    Now there...

Are monthly bills crive you nuts????

I your answer is yes, there is one phrase for you. 'Get organized!'. Create list of your current bills. Print a month-long calender and record the due date of each bill.Paying your bills on time will help you avoid late fees and penalty charges. Make bill paying easier by filing your bills by the due dates.