Showing posts with label terminal. Show all posts
Showing posts with label terminal. Show all posts

Friday, July 25, 2014

easy learn linux command line-part 25

What is your Choice for make Network with Windows Systems?

May be you select some Software with diffrent GUI, But we offer SAMBA for this.
you can connect your linux system to other windows systems easily even without GUI, only with some command in linux Terminal.

we offer for more information read this post.

Microsoft Windows networks (samba)

Command Description
# mount -t smbfs -o username=user,password=pass //WinClient/share /mnt/share mount a windows network share   
# nbtscan ip_addr netbios name resolution  
# nmblookup -A ip_addr netbios name resolution   
# smbclient -L ip_addr/hostname show remote shares of a windows host   
# smbget -Rr smb://ip_addr/share like wget can download files from a host windows via smb   

Saturday, February 8, 2014

آموزش خط فرمان-قسمت بیست و دوم

بازهم جمعه ای دیگه و آموزش های جدید در خصوص خط فرمان و کارهایی که می شه با اون انجام داد، شد. همیشه خیلی جاها شنیدیم که از سیستمتون پشتیبان بگیرید و خیلی از ماها پشت گوش انداختیم، اینجا نمی خوایم در خصوص تهیه فایل back Up و محاسنش بنویسیم. اینبار می خوایم یاد بگیریم چه جوری تو زندگی لینوکسیمون از همه چیز نه تنها فایل بلکه Log ها، فایل ها با پسوندهای مختلف، MBR مون و خیلی چیزهای دیگه ی فایل بک آپ داشته باشیم اونم با کمک محیط قدرتمند لینوکس و خط فرمانش.
در کنار اینکه یادگرفتیم که یک فایل پشتیبان تهیه کنیم، یاد می گیریم که چه جوری از این فایل استفاده کنیم و اون رو به مقاصد مختلف منتقل کنیم.

اگه از این قسمت آموزش خوشتون اومد دیدن سایر قسمت ها و همچنین به اشتراک گذاری این پست رو صمیمانه به شما پیشنهاد می دم.

خوب بریم سر اصل مطلب با عنوان گرفتن پشتیبان



گرفتن پشتیبان

دستور توضیح
# find /var/log -name '*.log' | tar cv --files-from=- | bzip2 > log.tar.bz2 پیدا کردن تمامی فایل های با پسوند log و ساختن یک فایل فشرده با فرمت bzip از آنها   
# find /home/user1 -name '*.txt' | xargs cp -av --target-directory=/home/backup/ --parents پیدا کردن همه ی فایل های با پسوند txt و کپی آنها از یک دایرکتوری به دایرکتوری دیگر   
# dd bs=1M if=/dev/hda | gzip | ssh user@ip_addr 'dd of=hda.gz' گرفتن پشتیبان از یک دیسک سخت بروی host از طریق ssh   
# dd if=/dev/sda of=/tmp/file1 گرفتن پشتیبان از یک پارتیشن در یک فایل   
# dd if=/dev/hda of=/dev/fd0 bs=512 count=1 کپی یک نسخه از MBR به یک فلاپی!
# dd if=/dev/fd0 of=/dev/hda bs=512 count=1 بازگرداندن MBR از نسخه ی پشتیبان در داخل یک فلاپی   
# dump -0aj -f /tmp/home0.bak /home گرفتن یک نسخه ی پشتیبان کامل از دایرکتوری home
# dump -1aj -f /tmp/home0.bak /home گرفتن یک نسخه ی پشتیبان افزایشی از دایرکتوری home   
# restore -if /tmp/home0.bak برگرداندن نسخه ی اصلی دایرکتوری home از طریق نسخه ی پشتیبان   
# rsync -rogpav --delete /home /tmp یکسان سازی ( synchronization ) بین دو دایرکتوری home و tmp  
# rsync -rogpav -e ssh --delete /home ip_address:/tmp یکسان سازی ( synchronization ) بین دو دایرکتوری home در کامپیوتر مبدا و tmp در دایرکتوری مقصد از طریق ssh 
# rsync -az -e ssh --delete ip_addr:/home/public /home/local یکسان سازی ( synchronization ) یک دایرکتوری محلی با یک دایرکتوری از راه دور ( remote ) از طریق ssh و فشرده سازی همزمان  
# rsync -az -e ssh --delete /home/local ip_addr:/home/public یکسان سازی ( synchronization ) یک دایرکتوری از راه دور ( remote ) با یک دایرکتوری محلی از طریق ssh و فشرده سازی همزمان   
# tar -Puf backup.tar /home/user گرفتن یک نسخه ی پشتیبان افزایشی از دایرکتوری مورد نظر  
# ( cd /tmp/local/ && tar c . ) | ssh -C user@ip_addr 'cd /home/share/ && tar x -p' کپی محتویات یک دایرکتوری در کامپیوتر مقصد ( remote ) از طریق ssh  
# ( tar c /home ) | ssh -C user@ip_addr 'cd /home/backup-home && tar x -p' کپی یک دایرکتوری به یک دایرکتوری بروی کامپیوتر مقصد ( remote ) از طریق ssh   
# tar cf - . | (cd /tmp/backup ; tar xf - ) کپی یک دایرکتوری به صورتی که مجوزها و لینک های موجود حفظ شود   

Tuesday, June 18, 2013

Easy learn linux command line- Part 18

you have to use these command line at the terminal, if you like to check, repair your hard drive.


Command Description
# badblocks -v /dev/hda1 check bad blocks on disk hda1   
# dosfsck /dev/hda1 repair / check integrity of dos filesystems on disk hda1   
# e2fsck /dev/hda1 repair / check integrity of ext2 filesystem on disk hda1   
# e2fsck -j /dev/hda1 repair / check integrity of ext3 filesystem on disk hda1   
# fsck /dev/hda1 repair / check integrity of linux filesystem on disk hda1   
# fsck.ext2 /dev/hda1 repair / check integrity of ext2 filesystem on disk hda1   
# fsck.ext3 /dev/hda1 repair / check integrity of ext3 filesystem on disk hda1   
# fsck.vfat /dev/hda1 repair / check integrity of fat filesystem on disk hda1   
# fsck.msdos /dev/hda1 repair / check integrity of dos filesystem on disk hda1   

Monday, April 1, 2013

Easy learn linux command line- Part 17

what do you do if you want to convert a file format from Dos to Linux Base OS?

to night we will learn how to use command line in linux terminal to convert some file format to linux and which commands use to recognize available format for convert.




Command Description
# dos2unix filedos.txt fileunix.txt convert a text file format from MSDOS to UNIX   
# recode ..HTML < page.txt > page.html convert a text file to html   
# recode -l | more show all available formats conversion   
# unix2dos fileunix.txt filedos.txt convert a text file format from UNIX to MSDOS   

Sunday, March 17, 2013

Easy learn linux command line- Part 16

hello again, you learned how to use command line for open files in terminal in the last post. now you need to edit files!

what is your recommendation comment?
if you don't have any idea, this post is especially write for you. only persons that need to edit, compare two files with together,found differences between files, merging them, found any word and replace in the files, remove empty rows, sort content and etc.

Command Description
# cat example.txt | awk 'NR%2==1' remove all even lines from example.txt   
# echo a b c | awk '{print $1}' view the first column of a line   
# echo a b c | awk '{print $1,$3}' view the first and third column of a line   
# cat -n file1 number row of a file   
# comm -1 file1 file2 compare contents of two files by deleting only unique lines from 'file1'   
# comm -2 file1 file2 compare contents of two files by deleting only unique lines from 'file2'   
# comm -3 file1 file2 compare contents of two files by deleting only the lines that appear on both files   
# diff file1 file2 find differences between two files   
# grep Aug /var/log/messages look up words "Aug" on file '/var/log/messages'   
# grep ^Aug /var/log/messages look up words that begin with "Aug" on file '/var/log/messages'   
# grep [0-9] /var/log/messages select from file '/var/log/messages' all lines that contain numbers   
# grep Aug -R /var/log/* search string "Aug" at directory '/var/log' and below   
# paste file1 file2 merging contents of two files for columns   
# paste -d '+' file1 file2 merging contents of two files for columns with '+' delimiter on the center   
# sdiff file1 file2 find differences between two files and merge interactively alike "diff"   
# sed 's/string1/string2/g' example.txt replace "string1" with "string2" in example.txt   
# sed '/^$/d' example.txt remove all blank lines from example.txt   
# sed '/ *#/d; /^$/d' example.txt remove comments and blank lines from example.txt   
# sed -e '1d' exampe.txt eliminates the first line from file example.txt   
# sed -n '/string1/p' view only lines that contain the word "string1"   
# sed -e 's/ *$//' example.txt remove empty characters at the end of each row   
# sed -e 's/string1//g' example.txt remove only the word "string1" from text and leave intact all   
# sed -n '1,5p' example.txt print from 1th to 5th row of example.txt   
# sed -n '5p;5q' example.txt print row number 5 of example.txt   
# sed -e 's/00*/0/g' example.txt replace more zeros with a single zero   
# sort file1 file2 sort contents of two files   
# sort file1 file2 | uniq sort contents of two files omitting lines repeated   
# sort file1 file2 | uniq -u sort contents of two files by viewing only unique line   
# sort file1 file2 | uniq -d sort contents of two files by viewing only duplicate line   
# echo 'word' | tr '[:lower:]' '[:upper:]' convert from lower case in upper case   

Friday, March 1, 2013

Easy learn linux command line- Part 15

what are commands for view and change files?
you can read this section and learn how to use command line for work with files in linux. you dont forget "any things are files in linux".


Command Description
# cat file1 view the contents of a file starting from the first row   
# head -2 file1 view first two lines of a file   
# less file1 similar to 'more' command but which allows backward movement in the file as well as forward movement   
# more file1 view content of a file along   
# tac file1 view the contents of a file starting from the last line   
# tail -2 file1 view last two lines of a file   
# tail -f /var/log/messages view in real time what is added to a file   

Tuesday, February 5, 2013

Easy learn linux command line- Part 14

Hello to every one. to night we want to learn about Most Popular Command for install Packages in the Debian Base OS Like Mint, Ubuntu, Debian and etc.
apt-get is very prevalent in Debian Base OS. Apt-get Tool help you for Download, install, remove, Upgrade, clean and Many others about Packages.
many user in Linux world used this command for Packages, maybe powerful reason for this behavior is exist many article, post and information about Apt-get in Linux command line.



Command Description
# apt-cache search [package] returns list of packages which corresponds string "searched-packages"   
# apt-cdrom install [package] install / upgrade a deb package from cdrom   
# apt-get install [package] install / upgrade a deb package   
# apt-get update update the package list   
# apt-get upgrade upgrade all of the installed packages   
# apt-get remove [package] remove a deb package from system   
# apt-get check verify correct resolution of dependencies   
# apt-get clean clean up cache from packages downloaded   

Wednesday, December 26, 2012

آموزش خط فرمان-قسمت دوازدهم

در قسمت قبلی اموختیم چگونه از دستورات پیش فرض خط فرمان در لینوکس های مبتنی بر ردهت و یا فدورا بسته مورد نظر خود را نصب،آپگرید و ... نماییم. در پست قبلی اشاره ای کوتاه بر ابزار نصب یام در ردهت بیش ها داشتیم، اما دستوراتی از آن معرفی ننمودیم. در اینجا قصد داریم نحوه کار با دستورات YUM که جهت استفاده کاربران سیستم عامل های لینوکسی فدورا و ردهت می باشد مطالعه نماییم.
در این قسمت نیز خواهیم اموخت چگونه بسته مورد نظر خود را دانلود و نصب، آپگرید ، حذف و ... نماییم.



ابزار نصب YUM ( فدورا و توزیع های مبتنی بر Red Hat )

دستور توضیح
# yum -y install [package] دانلود و نصب یک بسته ی rpm از مخازن   
# yum localinstall [package.rpm] نصب یک بسته ی rpm و تلاش برای حل پیش نیاز ها با استفاده از مخازن   
# yum -y update آپدیت همه ی بسته های rpm نصب شده در سیستم   
# yum update [package] آپگرید یک بسته ی rpm به نسخه ی جدیدتر   
# yum remove [package] حذف یک بسته ی rpm با استفاده از ابزار yum   
# yum list نمایش لیست همه ی بسته های نصب شده در سیستم   
# yum search [package] پیدا کردن یک بسته از مخازن   
# yum clean [package] پاک کردن cache که شامل بسته های rpm دانلود شده توسط ابزار yum است   
# yum clean headers پاک کردن همه فایل های header که سیستم برای حل پیش نیاز ها ( dependency ) از آنها استفاده می کند   
# yum clean all پاک کردن همه ی فایل های header و cache   

Wednesday, December 12, 2012

Easy learn linux command line- Part 11

tonight we decide to write about RPM Packages.RPM Packages use to Fedora and Red hat OS Base.
If you don't use of YUM packages installer, its easiest way to install your favorite Application on the Linux fedora,red hat and like it.
you learn how to install packages, upgrade it or them, remove packages, get information about packages and ... .
this post is most usage between fedora and red hat user. 


Command Description
# rpm -ivh [package.rpm] install a rpm package   
# rpm -ivh --nodeeps [package.rpm] install a rpm package ignoring dependencies requests   
# rpm -U [package.rpm] upgrade a rpm package without changing configuration files   
# rpm -F [package.rpm] upgrade a rpm package only if it is already installed   
# rpm -e [package] remove a rpm package   
# rpm -qa show all rpm packages installed on the system   
# rpm -qa | grep httpd show all rpm packages with the name "httpd" 
# rpm -qi [package] obtain information on a specific package installed  
# rpm -qg "System Environment/Daemons" show rpm packages of a group software   
# rpm -ql [package] show list of files provided by a rpm package installed   
# rpm -qc [package] show list of configuration files provided by a rpm package installed   
# rpm -q [package] --whatrequires show list of dependencies required for a rpm packet   
# rpm -q [package] --whatprovides show capability provided by a rpm package   
# rpm -q [package] --scripts show scripts started during installation / removal   
# rpm -q [package] --changelog show history of revisions of a rpm package   
# rpm -qf /etc/httpd/conf/httpd.conf verify which rpm package belongs to a given file   
# rpm -qp [package.rpm] -l show list of files provided by a rpm package not yet installed   
# rpm --import /media/cdrom/RPM-GPG-KEY import public-key digital signature   
# rpm --checksig [package.rpm] verify the integrity of a rpm package   
# rpm -qa gpg-pubkey verify integrity of all rpm packages installed   
# rpm -V [package] check file size, permissions, type, owner, group, MD5 checksum and last modification   
# rpm -Va check all rpm packages installed on the system - use with caution   
# rpm -Vp [package.rpm] verify a rpm package not yet installed   
# rpm -ivh /usr/src/redhat/RPMS/`arch`/[package.rpm] install a package built from a rpm source   
# rpm2cpio [package.rpm] | cpio --extract --make-directories *bin* extract executable file from a rpm package  
# rpmbuild --rebuild [package.src.rpm] build a rpm package from a rpm source   

Thursday, November 15, 2012

Easy learn linux command line- Part 10

Do you Know how to compress files and Director?
there are many command for Linux user that can help to make compress and Extract Compress files!

and you only need a linux disribution and Terminal!!!

we prepare a list of commands for Archives and compressd files and Director. you can make some compress files after that you read this post. there are many Archiving Forma in linux like: gz, tar, zip, bz2.




Archives and compressed files

Command Description
# bunzip2 file1.bz2 decompress a file called 'file1.bz2'   
# bzip2 file1 compress a file called 'file1'   
# gunzip file1.gz decompress a file called 'file1.gz'   
# gzip file1 compress a file called 'file1'   
# gzip -9 file1 compress with maximum compression   
# rar a file1.rar test_file create an archive rar called 'file1.rar'   
# rar a file1.rar file1 file2 dir1 compress 'file1', 'file2' and 'dir1' simultaneously   
# rar x file1.rar decompress rar archive   
# tar -cvf archive.tar file1 create a uncompressed tarball   
# tar -cvf archive.tar file1 file2 dir1 create an archive containing 'file1', 'file2' and 'dir1'   
# tar -tf archive.tar show contents of an archive   
# tar -xvf archive.tar extract a tarball   
# tar -xvf archive.tar -C /tmp extract a tarball into / tmp   
# tar -cvfj archive.tar.bz2 dir1 create a tarball compressed into bzip2   
# tar -xvfj archive.tar.bz2 decompress a compressed tar archive in bzip2   
# tar -cvfz archive.tar.gz dir1 create a tarball compressed into gzip   
# tar -xvfz archive.tar.gz decompress a compressed tar archive in gzip   
# unrar x file1.rar decompress rar archive   
# unzip file1.zip decompress a zip archive   
# zip file1.zip file1 create an archive compressed in zip   
# zip -r file1.zip file1 file2 dir1 compress in zip several files and directories simultaneously   

Sunday, October 14, 2012

Easy learn linux command line- Part 9

If you want to know about, How to use Special Attributes on Files you must read this Post.


Special Attributes on files

Command Description
# chattr +a file1 allows write opening of a file only append mode   
# chattr +c file1 allows that a file is compressed / decompressed automatically by the kernel   
# chattr +d file1 makes sure that the program ignores Dump the files during backup   
# chattr +i file1 makes it an immutable file, which can not be removed, altered, renamed or linked   
# chattr +s file1 allows a file to be deleted safely   
# chattr +S file1 makes sure that if a file is modified changes are written in synchronous mode as with sync   
# chattr +u file1 allows you to recover the contents of a file even if it is canceled   
# lsattr show specials attributes   

source:linuxguide

آموزش خط فرمان-قسمت نهم

آیا تاکنون خواسته اید مشخصات ویژه ای را بر روی فایل های خود اعمال نمایید.در این قسمت می آموزید که چگونه بتوانید هنگام استفاده از یک فایل کاربردهای ویژه ای را نیز اجرا نمایید.




اعمال ویژگی ها بر روی فایل

دستور توضیح
# chattr +a file1 در این حالت , فایل تنها در حالت الحاقی ( اضافه شدن ) قابل تغییر می باشد   
# chattr +c file1 اجازه فشرده سازی و باز کردن خودکار یک فایل را به کرنل می‌دهد   
# chattr +d file1 در این حالت , در هنگام اجرای ابزار سیستمی dump برای گرفتن نسخه ی پشتیبان در پارتیشن های ext4 , از فایل مورد نظر نسخه ی پشتیبان تهیه نخواهد شد   
# chattr +i file1 با اجرای این دستور , فایل حتی توسط کاربر root غیر قابل تغییر می شود   
# chattr +s file1 اجازه‌ی امن بودن حذف یک فایل را می‌دهد   
# chattr +S file1 در این حالت , تغییرات در فایل همزمان بروی هارد دیسک ذخیره می شود   
# chattr +u file1 اجازه‌ي بازيابي محتوبيات بك فايل، حتي اگر كه cancel شده باشد   
# lsattr نمایش مشخصات ویژه یک فایل در یک پارتیشن با سیستم فایل ext4   

Wednesday, September 5, 2012

Easy learn linux command line- Part 7

http://www.php2s.com/wp-content/uploads/2011/12/terminal-logo-small.pngHi to All.we are grateful to begin new series of easy linux command line learning.
we learn how to configure user,s and groups in linux with terminal in this section, like: add a group,change your password, create new user and ... .






Users and Groups

Command Description
# chage -E 2005-12-31 user1 set deadline for user password   
# groupadd [group] create a new group   
# groupdel [group] delete a group   
# groupmod -n moon sun rename a group from moon to sun   
# grpck check correct syntax and file format of '/etc/group' and groups existence   
# newgrp - [group] log into a new group to change default group of newly created files   
# passwd change password   
# passwd user1 change a user password (only by root)   
# pwck check correct syntax and file format of '/etc/passwd' and users existence   
# useradd -c "User Linux" -g admin -d /home/user1 -s /bin/bash user1 create a new user "user1" belongs "admin" group   
# useradd user1 create a new user   
# userdel -r user1 delete a user ( '-r' eliminates home directory)   
# usermod -c "User FTP" -g system -d /ftp/user1 -s /bin/nologin user1 change user attributes   



Monday, September 3, 2012

آموزش خط فرمان-قسمت هفتم

http://www.php2s.com/wp-content/uploads/2011/12/terminal-logo-small.pngبهتر است ابتدا با این جمله شروع کنیم: از تاخیر پیش آمده در بروز رسانی سری آموزش های خط فرمان لینوکس از تمامی کاربران عذرخواهی می گردد.
در هفته های اخیر ما ترافیک بلاگ رو مورد بررسی قرار دادیم و آنچه ما را شگفت زده کرد علاقه کاربران به پست های آموزش خط فرمان بود، فارغ از هرگونه زبان واحد، ما شاهد رجوع کاربران از سرتاسر دنیا به این بلاگ بوده ایم. همین امر ما را جهت بروزرسانی سری آموزشهای سریع ترمینال لینوکس بیش از پیش تشویق نمود.

در سری جدید آموزش قصد داریم دستورات مربوط به تعریف، حذف و ... کاربران و گروهها در لینوکس معرفی نماییم.



کاربرها و گروه ها

دستور توضیح
# chage -E 2012-12-31 user1 تعیین محدودیت زمانی برای پسورد کاربر user1   
# groupadd [group] ایجاد یک گروه جدید   
# groupdel [group] حذف یک گروه   
# groupmod -n moon sun تغییر نام یک گروه از moon به sun   
# grpck کنترل و بررسی گرامر و فرمت صحیح فایل etc/group و موجود بودن گروه ها   
# newgrp - [group] وارد شدن به یک گروه جدید و تغییر گروه پیش فرض فایل های ایجاد شده ی جدید   
# passwd تغییر پسورد کاربر ریشه ( root )   
# passwd user1 تغییر پسورد کاربر با نام user1   
# pwck کنترل و بررسی گرامر و فرمت صحیح فایل etc/passwd و موجود بودن کاربران   
# useradd -c "User Linux" -g admin -d /home/user1 -s /bin/bash user1 ایجاد یک کاربر جدید با نام user1 در گروه admin   
# useradd user1 ایجاد یک کاربر جدید با نام user1   
# userdel -r user1 حذف یک کاربر. گزینه ی r , دایرکتوری متعلق به کاربر در دایرکتوری home را پاک خواهد کرد !   
# usermod -c "User FTP" -g system -d /ftp/user1 -s /bin/nologin user1 تغییر مشخصات کاربر   

Friday, May 4, 2012

Easy learn linux command line- Part 6

Hi, in this post we learn how to find some information about our Hard Drives like: size,directory Space, mounted Partitions and ... .


Disk Space

Command Description
# df -h show list of partitions mounted   
# dpkg-query -W -f='${Installed-Size;10}t${Package}n' | sort -k1,1n show the used space by installed deb packages, sorting by size (debian, ubuntu and alike)   
# du -sh dir1 estimate space used by directory 'dir1'   
# du -sk * | sort -rn show size of the files and directories sorted by size   
# ls -lSr |more show size of the files and directories ordered by size   
# rpm -q -a --qf '%10{SIZE}t%{NAME}n' | sort -k1,1n show space used by rpm packages installed sorted by size (fedora, redhat and like)   

Saturday, April 7, 2012

Easy linux learn command line-Part3

Hi, in this post we learn how to work with files and directory in linux terminal


Command Description
# cd /home enter to directory '/ home'   
# cd .. go back one level   
# cd ../.. go back two levels   
# cd go to home directory   
# cd ~user1 go to home directory   
# cd - go to previous directory   
# cp file1 file2 copying a file   
# cp dir/* . copy all files of a directory within the current work directory   
# cp -a /tmp/dir1 . copy a directory within the current work directory   
# cp -a dir1 dir2 copy a directory   
# cp file file1 outputs the mime type of the file as text   
# iconv -l lists known encodings   
# iconv -f fromEncoding -t toEncoding inputFile > outputFile converting the coding of characters from one format to another   
# find . -maxdepth 1 -name *.jpg -print -exec convert batch resize files in the current directory and send them to a thumbnails directory (requires convert from Imagemagick)   
# ln -s file1 lnk1 create a symbolic link to file or directory   
# ln file1 lnk1 create a physical link to file or directory   
# ls view files of directory   
# ls -F view files of directory   
# ls -l show details of files and directory   
# ls -a show hidden files   
# ls *[0-9]* show files and directory containing numbers   
# lstree show files and directories in a tree starting from root
# mkdir dir1 create a directory called 'dir1'   
# mkdir dir1 dir2 create two directories simultaneously   
# mkdir -p /tmp/dir1/dir2 create a directory tree   
# mv dir1 new_dir rename / move a file or directory   
# pwd show the path of work directory   
# rm -f file1 delete file called 'file1'   
# rm -rf dir1 remove a directory called 'dir1' and contents recursively   
# rm -rf dir1 dir2 remove two directories and their contents recursively   
# rmdir dir1 delete directory called 'dir1'   
# touch -t 0712250000 file1 modify timestamp of a file or directory - (YYMMDDhhmm)   
# tree show files and directories in a tree starting from root

Tuesday, March 27, 2012

Easy learn linux command line- Part 2

This Post is about next Easy learn Linux Command line.you can learn about Shutdown,Restart and Log Out in linux System with Command Line.

if you Want to Know Most About Linux Terminal See here.







Shutdown, Restart and Logout of a system

Command
Description
# init 0 shutdown system
# logout leaving session   
# reboot reboot
# shutdown -h now shutdown system
# shutdown -h 16:30 & planned shutdown of the system  
# shutdown -c cancel a planned shutdown of the system   
# shutdown -r now reboot
# telinit 0 shutdown system