LinuxCMD.org is the Official Reference about
Linux Command Line documentation
Credits
|
ToDO (Help US)
|
ChangeLog
|
Terms of Use and License
|
About project
Language
Česká republika - Czech Republic
Deutsch - German
English - English
Español - Spanish
Français - French
Italiano - Italian
Polski - Polish
Português - Brazil Portuguese
ελληνικά - Greek
Па-беларуску - Byelorussian
Русский - Russian
العربية - Arabic
فارسی - Persian
中国 - Chinese
English
-
English
Linux Command Line
nothing it's impossible by command line!
Social Bookmarking
Script Generator
Menu
Commands by Argument
View the commands list divided into arguments
Show all commands
View all commands list on single sheet
A-Z Command Index
View the commands by letter
Tools
Add-ons of LinuxCMD - some useful tools for you
NewsLetter
Sign-up me to receive the news about this document
Languages Map
linuxcmd.org/en
linuxcmd.org/it
linuxcmd.org/es
linuxcmd.org/fr
linuxcmd.org/de
linuxcmd.org/cz
linuxcmd.org/pl
linuxcmd.org/by
linuxcmd.org/cn
linuxcmd.org/ru
linuxcmd.org/por
linuxcmd.org/fa
linuxcmd.org/gr
linuxcmd.org/ar
Add Language!
ToDO (Help US)
tag cloud
hosting
centos
web
server
firewall
hostname
internet
freebsd
gentoo
open source
software
computer
linux+
unix
redhat
support
opensource
windows
hardware
pc
microsoft
debian
sshd
telnet
netatalk
knoppix
red hat
inux
ltsp
webmin
config
lunix
apache
php
redhatlinux
linux8
howto
redhat9
ubuntu
linux web hosting
linux servers
linux training
linux course
linux service
learning linux
linux server
linux certification
linux services
unix linux
linux home server
Linux Command Line version 1.4
Last modified date: 2008-11-15
Created Date: 2008-01-06
Home
Users Area
Tools
Text Manipulation
View the commands list divided into arguments
-- Commands by Argument --
APT packages tool (Debian, Ubuntu and alike)
Archives and compressed files
Backup
CDROM
Character set and Format file conversion
DEB packages (Debian, Ubuntu and like)
Disk Space
File search
Files and Directory
Filesystem Analysis
Filesystem SWAP
Format a Filesystem
IPTABLES (firewall)
Microsoft Windows networks (samba)
Monitoring and debugging
Mounting a Filesystem
Networking (LAN / WiFi)
Others useful commands
Pacman packages tool (Arch, Frugalware and alike)
Permits on Files
RPM Packages ( Fedora, Red Hat and like)
Shutdown, Restart and Logout of a system
Special Attributes on files
System information
Text Manipulation
Users and Groups
View file content
YUM packages tool (Fedora, RedHat and alike)
Translated by:
Team LinuxCMD.org
|
become translator!
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
Commands by Argument
System information
-
Shutdown, Restart and Logout of a system
-
Files and Directory
-
File search
-
Mounting a Filesystem
-
Disk Space
-
Users and Groups
-
Permits on Files
-
Special Attributes on files
-
Archives and compressed files
-
RPM Packages ( Fedora, Red Hat and like)
-
YUM packages tool (Fedora, RedHat and alike)
-
DEB packages (Debian, Ubuntu and like)
-
APT packages tool (Debian, Ubuntu and alike)
-
View file content
-
Text Manipulation
-
Character set and Format file conversion
-
Filesystem Analysis
-
Format a Filesystem
-
Filesystem SWAP
-
Backup
-
CDROM
-
Networking (LAN / WiFi)
-
Microsoft Windows networks (samba)
-
IPTABLES (firewall)
-
Monitoring and debugging
-
Others useful commands
-
Pacman packages tool (Arch, Frugalware and alike)
-
Search a Command
LinuxCMD Search
Plug-in: Search button for Firefox and I.Explorer (it directly looks for the commands from your browser)
Google Search
more than 400 instructional approaches of linux commands, practical examples, popular commands...
TOP ^
use Open Software!
#
Contact US
Except where otherwise specified, the contents of LinuxCmd.org are licensed under License Creative Commons 2.5 Attribution
Free Distribution if provided Authors and, Not Commercial purposes and, Not Derivated Works 2.5
LinuxCmd.org
Terms of Use and License
Logos and trademarks used for the link are owned the legitimate owners