Sunteți pe pagina 1din 3

Redhat Linux Commands Command ls -a Option Argument Description Lists files and directories Shows hidden files

set less

Dumps output of a variable Reads output at one line at a time [filename] [command] Creates empty file looks up if command is available trys to identify what kind of file filename is identifies what user you are logged in as identifies who else is logged into the system [username] Creates user [username] and also creates private group [username] sets password

touch which

file

[filename]

whoami

who

useradd

passwd usermod -G

[username] [username] [list of groups seperated by commas] [username]

Adds user to group as supplemental member

-g man

[groupname] [username] [command]

Adds primary group to user Looks up manual page on particular command Removes user

userdel ll groupadd groupmod groupdel tail -n

[username]

[groupname]

adds group modifies group deletes group

[number] [filename]

shows last [number] of lines of [filename] Changes group owner of [directory] to [groupname] Create symbolic links Checks to see if [packagename] is installed Force removes [packagename] prints install(i), verbose(v), and with hashes(h) (loading bar) Will start or stop [servicename] installs [packagename] from internets

chgrp

[groupname] [directory]

ln rpm -q

[filename] [other filename] [packagename]

-e --nodeps -ivh

[packagename]

service [servicename] yum install [packagename]

stop OR start

wget [file location] chkconfig [servicename] on

goes out and gets file Tells service to turn on

S-ar putea să vă placă și