Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Linux-koriscenje iz komandne linije

[es] :: Linux :: Linux-koriscenje iz komandne linije
(Zaključana tema (lock), by random)

[ Pregleda: 3740 | Odgovora: 10 ] > FB > Twit

Postavi temu

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Borovic
Stefan Borovic
Beograd

Član broj: 80154
Poruke: 204
*.eunet.yu.

Jabber: borovic@elitesecurity.org


Profil

icon Linux-koriscenje iz komandne linije20.01.2006. u 12:56 - pre 222 meseci
Posto je u poslednje vreme sve vise popularna komandna linija ili text-mode koriscenja Linuxa, odlucio sam da napisem kratku listu nekih osnovnih shell (unix) komandi.Svako ko se doseti jos neke neka slobodno dopise.Hvala.

alias Create an alias
awk Find and Replace text, database sort/validate/index
break Exit from a loop
builtin Run a shell builtin

cal Display a calendar
case Conditionally perform a command
cat Display the contents of a file
cd Change Directory
cfdisk Partition table manipulator for Linux
chgrp Change group ownership
chmod Change access permissions
chown Change file owner and group
chroot Run a command with a different root directory
cksum Print CRC checksum and byte counts
clear Clear terminal screen
cmp Compare two files
comm Compare two sorted files line by line
command Run a command - ignoring shell functions
continue Resume the next iteration of a loop
cp Copy one or more files to another location
cron Daemon to execute scheduled commands
crontab Schedule a command to run at a later time
csplit Split a file into context-determined pieces
cut Divide a file into several parts

date Display or change the date & time
dc Desk Calculator
dd Data Dump - Convert and copy a file
declare Declare variables and give them attributes
df Display free disk space
diff Display the differences between two files
diff3 Show differences among three files
dir Briefly list directory contents
dircolors Colour setup for `ls'
dirname Convert a full pathname to just a path
dirs Display list of remembered directories
du Estimate file space usage

echo Display message on screen
ed A line-oriented text editor (edlin)
egrep Search file(s) for lines that match an extended expression
eject Eject CD-ROM
enable Enable and disable builtin shell commands
env Display, set, or remove environment variables
eval Evaluate several commands/arguments
exec Execute a command
exit Exit the shell
expand Convert tabs to spaces
export Set an environment variable
expr Evaluate expressions

factor Print prime factors
false Do nothing, unsuccessfully
fdformat Low-level format a floppy disk
fdisk Partition table manipulator for Linux
fgrep Search file(s) for lines that match a fixed string
find Search for files that meet a desired criteria
fmt Reformat paragraph text
fold Wrap text to fit a specified width.
for Expand words, and execute commands
format Format disks or tapes
free Display memory usage
fsck Filesystem consistency check and repair.
function Define Function Macros

gawk Find and Replace text within file(s)
getopts Parse positional parameters
grep Search file(s) for lines that match a given pattern
groups Print group names a user is in
gzip Compress or decompress named file(s)

hash Remember the full pathname of a name argument
head Output the first part of file(s)
history Command History
hostname Print or set system name

id Print user and group id's
if Conditionally perform a command
import Capture an X server screen and save the image to file
info Help info
install Copy files and set attributes

join Join lines on a common field

kill Stop a process from running

less Display output one screen at a time
let Perform arithmetic on shell variables
ln Make links between files
local Create variables
locate Find files
logname Print current login name
logout Exit a login shell
lpc Line printer control program
lpr Off line print
lprint Print a file
lprintd Abort a print job
lprintq List the print queue
lprm Remove jobs from the print queue
ls List information about file(s)

m4 Macro processor
man Help manual
mkdir Create new folder(s)
mkfifo Make FIFOs (named pipes)
mknod Make block or character special files
more Display output one screen at a time
mount Mount a file system
mtools Manipulate MS-DOS files
mv Move or rename files or directories

nice Set the priority of a command or job
nl Number lines and write files
nohup Run a command immune to hangups

passwd Modify a user password
paste Merge lines of files
pathchk Check file name portability
popd Restore the previous value of the current directory
pr Convert text files for printing
printcap Printer capability database
printenv Print environment variables
printf Format and print data
ps Process status
pushd Save and then change the current directory
pwd Print Working Directory

quota Display disk usage and limits
quotacheck Scan a file system for disk usage
quotactl Set disk quotas

ram ram disk device
rcp Copy files between two machines.
read read a line from standard input
readonly Mark variables/functions as readonly
remsync Synchronize remote files via email
return Exit a shell function
rm Remove files
rmdir Remove folder(s)
rpm Remote Package Manager
rsync Remote file copy (Synchronize file trees)

screen Terminal window manager
sdiff Merge two files interactively
sed Stream Editor
select Accept keyboard input
seq Print numeric sequences
set Manipulate shell variables and functions
shift Shift positional parameters
shopt Shell Options
shutdown Shutdown or restart linux
sleep Delay for a specified time
sort Sort text files
source Run commands from a file `.'
split Split a file into fixed-size pieces
su Substitute user identity
sum Print a checksum for a file
symlink Make a new name for a file
sync Synchronize data on disk with memory

tac Concatenate and write files in reverse
tail Output the last part of files
tar Tape ARchiver
tee Redirect output to multiple files
test Evaluate a conditional expression
time Measure Program Resource Use
times User and system times
touch Change file timestamps
top List processes running on the system
traceroute Trace Route to Host
trap Run a command when a signal is set(bourne)
tr Translate, squeeze, and/or delete characters
true Do nothing, successfully
tsort Topological sort
tty Print filename of terminal on stdin
type Describe a command

ulimit Limit user resources
umask Users file creation mask
umount Unmount a device
unalias Remove an alias
uname Print system information
unexpand Convert spaces to tabs
uniq Uniquify files
units Convert units from one scale to another
unset Remove variable or function names
unshar Unpack shell archive scripts
until Execute commands (until error)
useradd Create new user account
usermod Modify user account
users List users currently logged in
uuencode Encode a binary file
uudecode Decode a file created by uuencode

v Verbosely list directory contents (`ls -l -b')
vdir Verbosely list directory contents (`ls -l -b')

watch Execute/display a program periodically
wc Print byte, word, and line counts
whereis Report all known instances of a command
which Locate a program file in the user's path.
while Execute commands
who Print all usernames currently logged in
whoami Print the current user id and name (`id -un')

xargs Execute utility, passing constructed argument list(s)
yes Print a string until interrupted

.period Run commands from a file
### Comment / Remark

(ovo su inace komande za BASH SHELL)
(sajt:http://www.ss64.com/bash/)




[Ovu poruku je menjao Borovic dana 25.01.2006. u 14:13 GMT+1]
n
Prikačeni fajlovi
 
0

d0ubleclick
"admin" u cybercaffeu
Osijek/HR

Član broj: 69221
Poruke: 57
*.xnet.hr.

Jabber: doubleclick@jabber.org


Profil

icon Re: Linux-koriscenje iz konzole20.01.2006. u 16:52 - pre 222 meseci
Odlicno! Samo ne znam o kakvoj je to konzoli (popularnoj) ovdje rijec?
nema glupih pitanja, ima samo glupih ljudi...
 
0

mulaz
Ljubljana

Član broj: 47602
Poruke: 2239
*.dial-up.dsl.siol.net.

Jabber: mulaz@elitesecurity.org
Sajt: www.mulaz.org


+184 Profil

icon Re: Linux-koriscenje iz konzole20.01.2006. u 16:57 - pre 222 meseci
za svaku komandu pogledajte i manpage
`man $imekomande`

btw, na nekim distroima postoji program `wtf` koji napise prvu liniju iz man fajla

primer:

Code:
bash-3.00$ wtf is BitchX
BitchX: BitchX               (1)  - The Ultimate IRC Client
bash-3.00$ wtf is links
links: links                (1)  - lynx-like alternative character mode WWW browser

Bolje ispasti glup nego iz aviona
http://www.mulaz.org/
 
0

Borovic
Stefan Borovic
Beograd

Član broj: 80154
Poruke: 204
*.eunet.yu.

Jabber: borovic@elitesecurity.org


Profil

icon Re: Linux-koriscenje iz konzole20.01.2006. u 18:42 - pre 222 meseci
d0ubleclick, citaj kraj...Ovo su komande za bash shell (najcesce se koristi u linuxu).
n
 
0

random
Vladimir Vrzić
Beograd

Član broj: 85
Poruke: 3866
*.fpn.bg.ac.yu.

Sajt: www.last.fm/user/vrza


+4 Profil

icon Re: Linux-koriscenje iz konzole23.01.2006. u 11:34 - pre 222 meseci
90% tih komandi nisu vezane za bash shell, tj. mogu da se koriste iz bilo kog shella. Takođe, nisu striktno vezane za konzolu, tj. mogu da se koriste i sa udaljenog računara.
int rand(void);

Those who do not understand Unix are condemned to reinvent it, poorly.

Upali lampicu — koristi Jabber!
 
0

elitefan
Frankfurt/M

Član broj: 4010
Poruke: 135
62.206.189.*



+1 Profil

icon Re: Linux-koriscenje iz konzole23.01.2006. u 11:54 - pre 222 meseci
Ovaj post će baš olakšati prilikom donošenja odluke o eventualnom prelazu na linuX. Sada kada me neko bude pitao šta je to prednost jednog Unix-oidnog sistema poslaću mu link ovog posta, da vide ljudi šta je prava stvar. :-)

Ne stvarno, zašto se postavljaju ovake stvari (kopirane) na engleskom. Tih stvari je puuuuun internet. Ako si već nešto mislio treba si to prevesti na srpski (da te ceo svet razume), hrvatski a mogao si i na bosanski..


Odkud znam šta mislim dok ne čujem šta sam rekao!
 
0

Martinubi
Guybrush Threepwood
SM

Član broj: 81082
Poruke: 8
*.metrohive.neobee.net.



Profil

icon Re: Linux-koriscenje iz konzole23.01.2006. u 17:20 - pre 222 meseci
dok je objasnjenje napisano na engleskom, komande su koliko toliko logicne.na srpskom bi bilo smesno do jaja.

[Ovu poruku je menjao Martinubi dana 23.01.2006. u 18:23 GMT+1]
I want to be a pirate
 
0

Borovic
Stefan Borovic
Beograd

Član broj: 80154
Poruke: 204
*.eunet.yu.

Jabber: borovic@elitesecurity.org


Profil

icon Re: Linux-koriscenje iz konzole23.01.2006. u 17:35 - pre 222 meseci
Sve komande kao i sve poruke u linux shellovima su vecinom radjene na engleskom jeziku(kazem vecina da bih ostavio mesta vrlo retkim izuzecima).Tako da bi bilo pomalo nelogicno da se komande na engleskom prevode i objasnjavaju na srpskom(?!?).Takodje svako ko nije sposoban da ovo razume, nije sposoban ni da koristi linux konzolu.Ovaj spisak iako prekopiran (i doradjen), treba prvenstveno da obogati bazu [es] foruma.Posto ne vidim da je moj post ikome naskodio ne vidim razloge nipodastavanju mojih postupaka...

P.S.Da sam hteo da ovo priznam kao svoje autorsko delo, ne bih obezbedio link ka internet sajtu gde su ove komande i nadjene.

Hvala.

[Ovu poruku je menjao Borovic dana 23.01.2006. u 18:37 GMT+1]
n
 
0

random
Vladimir Vrzić
Beograd

Član broj: 85
Poruke: 3866
*.eunet.yu.

Sajt: www.last.fm/user/vrza


+4 Profil

icon Re: Linux-koriscenje iz konzole24.01.2006. u 21:03 - pre 222 meseci
Kao moderator, pokušaću ukratko da objasnim zašto je ovakva tema loše koncipirana, pre svega korisniku Borovicu, a i svim ostalim početnicima ovde.

Linux, kao i UN*X i BSD sistemi, ima on-line dokumentaciju koja je dostupna iz komandne linije u toku rada, u vidu takozvanih „man“ stranica. Komandom man dobijamo uputstvo za korišćenje praktično bilo kojeg programa ili komande. Npr.

$ man ls


Komanda whatis služi za dobijanje samo kratkog opisa iz man stranice, da bi se brzo ustanovilo čemu služi određena komanda. Npr.


$ whatis ls
ls (1) - list directory contents
$


Cela baza ovakvih kratkih opisa se može pretražiti komandom apropos. Npr.

$ apropos partition
apple_driver (8) - extract Macintosh partition label, maps and boot driver
cfdisk (8) - Curses based disk partition table manipulator for Linux
fdisk (8) - Partition table manipulator for Linux
jfs_mkfs (8) - create a JFS formatted partition
jfs_mkfs [mkfs] (8) - create a JFS formatted partition
mpartition (1) - partition an MSDOS hard disk
sfdisk (8) - Partition table manipulator for Linux
$


Ova lista koju je korisnik Borovic postavio ovde („autorsko delo“ :o)) je zapravo lista ovih kratkih opisa. Ovakvu listu možete stvoriti na vašem Linux sistemu u svakom trenutku, zadavanjem komande poput

$ apropos ' '|grep '([18])'


Verovatno ju je sličnom komandom „autor“ i napravio.

Dakle, zašto nije korisno, a čak može biti i štetno, postaviti ovakvu vrstu pomoći na forum? Jer to navodi novajliju na pomisao da mu je potreban neki veb sajt ili štampana dokumentacija da bi saznao koje komande može da koristi. Sa druge strane, mnogo je korisnije objasniti mu da ovakvu pomoć može dobiti u svakom trenutku, i to iz samog sistema.

P.S. Ako ovo što sam napisao već nije objašnjeno u nekoj od „top“ tema na Linux forumu, trebalo bi pod hitno da se doda.

P.P.S. Iskoristiću priliku da napomenem autoru teme (mada je već pričano o tome u par navrata ovde) da konzola nije isto što i komandna linija.

int rand(void);

Those who do not understand Unix are condemned to reinvent it, poorly.

Upali lampicu — koristi Jabber!
 
0

Borovic
Stefan Borovic
Beograd

Član broj: 80154
Poruke: 204
*.eunet.yu.

Jabber: borovic@elitesecurity.org


Profil

icon Re: Linux-koriscenje iz konzole25.01.2006. u 13:03 - pre 222 meseci
Prihvatam sugestiju.Trebao sam da naglsim da sve ovo moze da se nadje u samom shell-u, ali ipal ne vidim da ova tema moze da bude ikome stetna.Ako je tako, slobodno je izbrisite.
n
 
0

random
Vladimir Vrzić
Beograd

Član broj: 85
Poruke: 3866
*.fpn.bg.ac.yu.

Sajt: www.last.fm/user/vrza


+4 Profil

icon Re: Linux-koriscenje iz konzole25.01.2006. u 13:14 - pre 222 meseci
Nema razloga da se briše, ali mislim da je sve rečeno. Lock.
int rand(void);

Those who do not understand Unix are condemned to reinvent it, poorly.

Upali lampicu — koristi Jabber!
 
0

[es] :: Linux :: Linux-koriscenje iz komandne linije
(Zaključana tema (lock), by random)

[ Pregleda: 3740 | Odgovora: 10 ] > FB > Twit

Postavi temu

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.