मूल लिनक्स लिनक्स र विन्डोज संचालन प्रणाली मा आदेशहरू
इच्छा ती लिनक्स आदेशहरू सुरू गर्न लागि यो लेखन उपयोगी छ. Here you will find the most common commands that are used in Linux.
तपाईं Windows मा लिनक्स आज्ञा चलान गर्न चाहनुहुन्छ भने स्थापना Cygwin. Cygwin is a Linux layer on top of Windows that allows you to use Linux commands in Windows.
तपाईं सुरु गर्दा तपाईं Windows मा त पूर्वनिर्धारित बाटो Cygwin स्थापना यदि Cygwin टर्मिनल हुनेछ:
C:\cygwin64\home\{username}
नयाँ नोटप्याड फाइल उदाहरण सिर्जना
touch textfile.txt
परिवर्तन निर्देशिका
cd {directory path\name}
List directory content in long format ( -l ) including hidden files and directories ( -a )
ls -l -a
ls -al
Order files and directories by the time they were last modified
ls -t
List directory with pause and scrolling
ls -l | less
वर्तमान स्थान देखाउन (print working directory)
pwd
पछिल्लो निकाल्न 100 एक फाइल को शब्द
tail -100 {filename.extension}
पहिलो निकाल्न 100 एक फाइल को पङ्क्तिहरू
head -100 {filename.extension}
फाइल कपी
cp {source} {destination}
फाइल सार्न
mv {source} {destination}
नयाँ निर्देशिका बनाउन
mkdir {new directory name}
फाइल मेट्न
rm {filename}
Delete an empty directory
rmdir {directory to remove}
rm -d{directory to remove}
Delete directory and its contents
rm -r {directory to remove}
rm -R{directory to remove}
एक फाइल को सामग्रीहरू क्रमबद्ध
sort {filename to sort}
फाइल मा नक्कली प्रविष्टियों
uniq {filename to remove duplicates}
फाइलहरू सङ्कुचन
gzip {filename}
निर्देशिका सङ्कुचन
gzip -r {directory name}
एक पाठ फाइल पङ्क्तिहरू र शब्दहरू संख्या गणना
wc {filename}
Search text within files for matching string pattern (case sensitive)
grep 'word' {filename}
Search text within files for matching string pattern (case insensitive)
grep -i 'word' {filename}
Search with a directory
grep -R Arctic /home/ccuser/workspace/geography
एक पाठ फाइल सामग्री प्रदर्शन
cat
sed stream editor (similar to find and replace)
sed 's/snow/rain/' forests.txt
फाइल र निर्देशिका अनुमति परिवर्तन
chmod {options} {permissions} {filename}
प्रयोग हाल आदेशहरू सूची
history
स्वचालित रूपमा कार्य छुट्याउने
cron
crontab
परिवर्तन फाइल अनुमति
chmod {permission number} {some file or directory}
chmod 777 /storage
पुनरावर्ती फाइल अनुमति परिवर्तन
chmod -R {permission number} {some file or directory}
