\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{Linuxcity (Mohammad R. Fathini)} \pdfinfo{ /Title (linux-persian-cheat.pdf) /Creator (Cheatography) /Author (Linuxcity (Mohammad R. Fathini)) /Subject (Linux Persian cheat Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{B0BA5A} \definecolor{LightBackground}{HTML}{FAFAF4} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Linux Persian cheat Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Linuxcity (Mohammad R. Fathini)} via \textcolor{DarkBackground}{\uline{cheatography.com/21638/cs/4215/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}Linuxcity (Mohammad R. Fathini) \\ \uline{cheatography.com/mohammad-r-fathini} \\ \uline{\seqsplit{linuxcity}.ir} \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 20th June, 2015.\\ Updated 12th May, 2016.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{x{0.84609 cm} x{4.13091 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Bash Shortcuts}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{CTRL-c} & بستن فرمان جاری \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \seqsplit{CTRL-z} & در حالت کم مصرف نمودن برنامه \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{CTRL-a} & رفتن به ابتدای خط \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} \seqsplit{CTRL-e} & رفتن به پایان خط \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} \seqsplit{CTRL-u} & برش از ابتدای خط \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} \seqsplit{CTRL-k} & برش تا انتهای خط \tn % Row Count 7 (+ 1) % Row 6 \SetRowColor{LightBackground} \seqsplit{CTRL-r} & جتجو در تاریخچه فرامین اجرا شده \tn % Row Count 9 (+ 2) % Row 7 \SetRowColor{white} !! & تکرار فرمان قبلی \tn % Row Count 10 (+ 1) % Row 8 \SetRowColor{LightBackground} !{\emph{abc}} & شروع می شود abc شروع فرمان قبلی \tn % Row Count 12 (+ 2) % Row 9 \SetRowColor{white} !{\emph{abc:p}} & شروع می شود abc نمایش فرمان قبلی \tn % Row Count 14 (+ 2) % Row 10 \SetRowColor{LightBackground} !\$ & استفاده ازارگومان فرمان قبلی \tn % Row Count 16 (+ 2) % Row 11 \SetRowColor{white} ALT-. & استفاده ازارگومان فرمان قبلی \tn % Row Count 18 (+ 2) % Row 12 \SetRowColor{LightBackground} !* & استفاده از تمام ارگومان فرمان قبلی \tn % Row Count 20 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.09494 cm} x{3.88206 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{System}} \tn % Row 0 \SetRowColor{LightBackground} uname -a & اطلاعات سیستم لینوکس \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} uname -r & مشاهده ورژن کرنل لینوکس \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} uptime & مدت زمان روشن بودن سیستم \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{hostname} & مشاهده نام میزبان سیستم \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \seqsplit{hostname} -i & میزبان IP نمایش \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} last reboot & مشاهده سوابق ریبوت \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} date & مشاهده زمان و تاریخ سیستم \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} cal & شماده تقویم ماهانه \tn % Row Count 16 (+ 2) % Row 8 \SetRowColor{LightBackground} W & مشاهده افراد انلاین \tn % Row Count 18 (+ 2) % Row 9 \SetRowColor{white} whoami & مشاهده کابر جاری \tn % Row Count 19 (+ 1) % Row 10 \SetRowColor{LightBackground} finger user & مشاهده اطلاعات کاربر جاری \tn % Row Count 21 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.18988 cm} x{2.78712 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Network}} \tn % Row 0 \SetRowColor{LightBackground} ip addr show & مشاهده تمامی ادرس های سیستم \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} ip address add x.x.x.x dev eth0 & eth0 اختصاص ادرس خاص به \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} ethtool eth0 & eth0 مشاهده وضعیت \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} mii-tool eth0 & eth0 مشاهده وضعیت \tn % Row Count 9 (+ 2) % Row 4 \SetRowColor{LightBackground} ping {\emph{host / address}} & بررسی وضعیت فعال بودن میزبان یا ادرس \tn % Row Count 12 (+ 3) % Row 5 \SetRowColor{white} whois domain & مشاهده اطلاعات دامین \tn % Row Count 14 (+ 2) % Row 6 \SetRowColor{LightBackground} hostname -i & جستجوی ادرس های داخلی \tn % Row Count 16 (+ 2) % Row 7 \SetRowColor{white} wget {\emph{file}} & دانلود کردن فایل \tn % Row Count 18 (+ 2) % Row 8 \SetRowColor{LightBackground} netstat -tupl & مشاهده تمامی پورت های فعال \tn % Row Count 21 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.58804 cm} x{2.38896 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Install Pakages}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{{\emph{RedHat}}}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} rpm -i {\emph{pkgname.rpm}} & نصب برنامه \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} rpm -r {\emph{pkgname}} & حذف برنامه \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{{\bf{{\emph{Debian}}}}} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} dpkg -i {\emph{pkgname.deb}} & نصب برنامه \tn % Row Count 6 (+ 2) % Row 5 \SetRowColor{white} dpkg -r {\emph{pkgname}} & حذف برنامه \tn % Row Count 7 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.89126 cm} x{3.08574 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Login (SSH and Telnet)}} \tn % Row 0 \SetRowColor{LightBackground} ssh {\emph{user@host}} & اتصال با ادرس مورد نظر با کاربر خاص \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} ssh -p {\emph{port}} {\emph{user@host}} & اتصال با ادرس و پورت مورد نظر با کاربر خاص \tn % Row Count 7 (+ 4) % Row 2 \SetRowColor{LightBackground} telnet {\emph{host}} & Telnet اتصال به ادرس مورد نظر با \tn % Row Count 10 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.18988 cm} x{2.78712 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Disk Usage}} \tn % Row 0 \SetRowColor{LightBackground} df -h & مشاهده فضای خالی از فایل سیستم \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} fdisk -l & مشاهده سایز و نوع پارتیشن \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} du -ah & مشاهده فضای استفاده شده \tn % Row Count 8 (+ 2) % Row 3 \SetRowColor{white} du -sh & مشاهده کل فضای استفاده شده در دایرکتوری جاری \tn % Row Count 12 (+ 4) % Row 4 \SetRowColor{LightBackground} findmnt & مشاهده کلیه دستگاه های متصل شده \tn % Row Count 15 (+ 3) % Row 5 \SetRowColor{white} mount {\emph{device-path mount-point}} & اتصال یک دستگاه \tn % Row Count 17 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.09494 cm} x{3.88206 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Directory Operations}} \tn % Row 0 \SetRowColor{LightBackground} pwd & نمایش دایرکتوری جاری \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} mkdir {\emph{dir}} & ساخت دایرکتوری \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} cd {\emph{dir}} & ورود به دایرکتوری \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} cd .. & رفتن یک دایرکتوری بالاتر \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} ls & نمایش لیست فایل ها \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} x{4.4793 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{ls Options}} \tn % Row 0 \SetRowColor{LightBackground} -a & نمایش همه -به همراه فایل های مخفی \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} -t & مرتب سازی بر اساس اصلاح قبلی \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} -S & مرتب سازی براساس حجم \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} -l & نمایش با توضیحات کامل \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} -H & نمایش حجم بر اساس مگابایت \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.89126 cm} x{3.08574 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Search Files}} \tn % Row 0 \SetRowColor{LightBackground} grep {\emph{pattern files}} & جستجو برای الگوی خاص در فایل \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} grep -i & حساس نبودن به بزرگی و کوچکی حروف \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} grep -r & جستجوی بازگشتی \tn % Row Count 8 (+ 2) % Row 3 \SetRowColor{white} grep -v & جستجوی معکوس \tn % Row Count 9 (+ 1) % Row 4 \SetRowColor{LightBackground} grep -o & نمایش محل های مطابق با مورد جستجو \tn % Row Count 12 (+ 3) % Row 5 \SetRowColor{white} find {\emph{/dir/ -name name}}* & پیدا کردن فایل یا نام مشخص شده \tn % Row Count 15 (+ 3) % Row 6 \SetRowColor{LightBackground} find {\emph{/dir/ -user name}} & پیدا کردن فایلهای کاربر خاص \tn % Row Count 18 (+ 3) % Row 7 \SetRowColor{white} whereis {\emph{command}} & پیدا کردن کد باینری و ... برای فرمان \tn % Row Count 21 (+ 3) % Row 8 \SetRowColor{LightBackground} locate {\emph{file}} & یافتن سریع محل فایل \tn % Row Count 23 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.09034 cm} x{2.88666 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{File Permession Related}} \tn % Row 0 \SetRowColor{LightBackground} chmode {\emph{octal file name}} & تغییر دسترسی های یک فایل \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{{\bf{Example}}} \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} chmod {\emph{777 /date/test.c}} & تغییر دسترسی بر اساس 777 \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} chown {\emph{owner-user/group file}} & تغییر مالکیت یک فایل یا گروه \tn % Row Count 8 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.44333 cm} x{3.53367 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Users}} \tn % Row 0 \SetRowColor{LightBackground} id & مشاهده اطلاعات کاربر \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} last & مشاهده آخرین ورود کاربر به سیستم \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} who & مشاهده کاربر فعال جاری \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} groupadd {\emph{admin}} & admin اضافه نمودن گروه \tn % Row Count 9 (+ 2) % Row 4 \SetRowColor{LightBackground} userdel {\emph{Amir}} & پاک کردن کاربر \tn % Row Count 11 (+ 2) % Row 5 \SetRowColor{white} adduser {\emph{Amir}} & ساخت کاربر \tn % Row Count 13 (+ 2) % Row 6 \SetRowColor{LightBackground} usermod & تغییر اطلاعات کاربر \tn % Row Count 15 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.18988 cm} x{2.78712 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Compression / Archives}} \tn % Row 0 \SetRowColor{LightBackground} tar cf {\emph{home.tar}} {\bf{{\emph{home}}}} & home ساخت یک فایل ارشیو از \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} tar xf {\emph{file.tar}} & باز کردن فایل ارشیو \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} tar czf {\emph{file.tar.gz}} {\emph{files}} & ساخت یک فایل ارشیو و فشرده سازی آن \tn % Row Count 7 (+ 3) % Row 3 \SetRowColor{white} gzip {\emph{file}} & فشرده سازی یک فایل \tn % Row Count 9 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.69218 cm} x{3.28482 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Search}} \tn % Row 0 \SetRowColor{LightBackground} grep pattern {\emph{files}} & جستجو بر اساس پارامترها در فایل \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} grep -r pattern {\emph{dir}} & جستجو بر اساس پارامترها در دایرکتوری \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} locate {\emph{file}} & نمایش تمام مثالهای فایل \tn % Row Count 8 (+ 2) % Row 3 \SetRowColor{white} find {\emph{/path}} & یافتن فایل در مسیر مشخص \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.14011 cm} x{2.83689 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{File Transfer}} \tn % Row 0 \SetRowColor{LightBackground} scp {\emph{file.txt server2:/tmp}} & کپی سورس فایل در یک ادرس دیگر \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} rsync -a {\emph{/home/apps /backup/}} & کردن مبدا و مقصد sync \tn % Row Count 5 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.64701 cm} x{4.32999 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Nano Shortcuts}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{Files}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \seqsplit{Ctrl-R} & خواندن فایل \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{Ctrl-O} & ذخیره کردن فایل \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{Ctrl-X} & بستن فایل \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{Cut and Paste}}} \tn % Row Count 8 (+ 1) % Row 5 \SetRowColor{white} ALT-A & انتخاب متن \tn % Row Count 9 (+ 1) % Row 6 \SetRowColor{LightBackground} \seqsplit{CTRL-K} & برش متن یا خظ انتخاب شده \tn % Row Count 11 (+ 2) % Row 7 \SetRowColor{white} \seqsplit{CTRL-U} & بازگرداندن \tn % Row Count 13 (+ 2) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{Navigate File}}} \tn % Row Count 14 (+ 1) % Row 9 \SetRowColor{white} ALT-/ & پایان فایل \tn % Row Count 15 (+ 1) % Row 10 \SetRowColor{LightBackground} \seqsplit{CTRL-A} & ابتدای یک خط \tn % Row Count 17 (+ 2) % Row 11 \SetRowColor{white} \seqsplit{CTRL-E} & پایان یک خط \tn % Row Count 19 (+ 2) % Row 12 \SetRowColor{LightBackground} \seqsplit{CTRL-C} & مشاهده شماره خط \tn % Row Count 21 (+ 2) % Row 13 \SetRowColor{white} \seqsplit{CTRL-\_} & رفتن به خط شماره مورد نظر \tn % Row Count 23 (+ 2) % Row 14 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{Search File}}} \tn % Row Count 24 (+ 1) % Row 15 \SetRowColor{white} \seqsplit{CTRL-W} & جستجو \tn % Row Count 26 (+ 2) % Row 16 \SetRowColor{LightBackground} ALT-W & جستجوی بعدی \tn % Row Count 27 (+ 1) % Row 17 \SetRowColor{white} CTRL-\textbackslash{} & یافتن و جابه جا کردن \tn % Row Count 29 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{More nano info at: \newline http://www.nano-editor.org/docs.php} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.69218 cm} x{3.28482 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Hardware}} \tn % Row 0 \SetRowColor{LightBackground} dmesg & مشاهده پیغام های سخت افزار و بوت \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} cat \seqsplit{/proc/cpuinfo} & cpu مشخصات \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} cat \seqsplit{/proc/meminfo} & مشاهده حافظه سیستم \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} lshw & مشاهده اطلاعات سخت افزاری \tn % Row Count 9 (+ 2) % Row 4 \SetRowColor{LightBackground} free -m & مشاهده حافظه خالی و استفاده شده \tn % Row Count 12 (+ 3) % Row 5 \SetRowColor{white} lspci -tv & expansion مشاهده کارت های \tn % Row Count 14 (+ 2) % Row 6 \SetRowColor{LightBackground} lsusb -tv & usb مشاهده قطعات وصل شده از طریق \tn % Row Count 17 (+ 3) % Row 7 \SetRowColor{white} dmidecode & BIOS مشاهده اطلاعات سخت افزاری از \tn % Row Count 20 (+ 3) % Row 8 \SetRowColor{LightBackground} hdparm -i /dev/sda & مشاهده اطلاعات هادر دیسک \tn % Row Count 22 (+ 2) % Row 9 \SetRowColor{white} hdparm -tT /dev/sda & انجام تست سرعت بر روی هارد دیسک \tn % Row Count 25 (+ 3) % Row 10 \SetRowColor{LightBackground} badblocks -s /dev/sda & بررسی هارد برای سکتور های خراب \tn % Row Count 28 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.33919 cm} x{2.63781 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{File Commands}} \tn % Row 0 \SetRowColor{LightBackground} ls -al & نمایش کلیه اطلاعات فایل یا فولدر \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} rm {\emph{file-name}} & پاک کردن فایل \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} rm -r {\emph{directory name}} & پاک کردن فولدر \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} rm -f {\emph{file-name}} & پاک کردن سریع فایل \tn % Row Count 9 (+ 2) % Row 4 \SetRowColor{LightBackground} cp {\emph{file1}} {\emph{file2}} & file2 به file1 کپی \tn % Row Count 11 (+ 2) % Row 5 \SetRowColor{white} cp -r {\emph{dir1}} {\emph{dir2}} & dir2 به dir1ساخت دایرکتوری و کپی \tn % Row Count 14 (+ 3) % Row 6 \SetRowColor{LightBackground} mv {\emph{file1}} {\emph{file2}} & تغییر نام / تغییر مکان فایل \tn % Row Count 17 (+ 3) % Row 7 \SetRowColor{white} ln -s {\emph{/path/file-name}} {\emph{link-name}} & ساخت یک سمبولیک لینک \tn % Row Count 19 (+ 2) % Row 8 \SetRowColor{LightBackground} touch {\emph{file}} & ساخت یا بروزرسانی فایل \tn % Row Count 21 (+ 2) % Row 9 \SetRowColor{white} cat \textgreater{} {\emph{file}} & نوشتن خروجی در فایل \tn % Row Count 23 (+ 2) % Row 10 \SetRowColor{LightBackground} head {\emph{file}} & خروجی 10 حط اول از متن فایل \tn % Row Count 26 (+ 3) % Row 11 \SetRowColor{white} tail {\emph{file}} & خروجی 10 حط آخر از متن فایل \tn % Row Count 29 (+ 3) % Row 12 \SetRowColor{LightBackground} gpg -c {\emph{file}} & انکریپت کردن فایل \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.33919 cm} x{2.63781 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{File Commands (cont)}} \tn % Row 13 \SetRowColor{LightBackground} gpg {\emph{file.gpg}} & برگرداندن از حالت انکریپت \tn % Row Count 3 (+ 3) % Row 14 \SetRowColor{white} wc & مشاهده تعداد خط، بایت و ... از یک فایل \tn % Row Count 7 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{0.84609 cm} x{4.13091 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Directory Traverse}} \tn % Row 0 \SetRowColor{LightBackground} cd .. & برگشت به پوشه بالاتر \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} cd & home رفتن به پوشه \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} cd /test & test تغییر دایرکتوری جاری به \tn % Row Count 5 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{لطفا از سایت ما دیدن فرمایید \newline WebSite: www.linuxcity.ir \newline E-mail: info@linuxcity.ir} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}