Linux Primer Some basic commands




Linux Primer: Some basic commands


Next
Previous
Contents


7. Some basic commands



ls

List the contents of the current directory

ls name

List the contents of the named directory (eg. ls /etc)

ls -l

List the directory contents in "long" format, including file permissions,
ownership details and file size

ls -a

List all the files in a directory, including files that start with a '.'

cat filename

Display the contents of a file to the screen

more filename

Display a file on the screen, with scrolling and search facilities.
less is an enhanced version of more

cp source destination

Copy the source file to the destination (eg. cp /etc/passwd .
copies the password file to the current directory)

mv source destination

Move (or rename) the source file to the destination, which can be a
directory or another file

rm filename

Remove (ie. delete) a file - use with caution!

mkdir name

Make a directory

rmdir name

Remove an empty directory

locate keyword

Displays a list of files that contain the keyword in their filename.

su

Temporarily become the superuser - useful for system administration tasks
(can also be used to become another user - see the man page for further
information)

passwd

Change the password used to access your user account

who

Display a list of users currently logged onto this computer




Next Previous Contents



Wyszukiwarka

Podobne podstrony:
Linux Primer Getting help about commands
Linux Primer Shutting down a Linux computer
Linux Primer Directories
Linux Primer Moving around
Linux Primer
Linux Primer Preamble
Linux Primer Logging in, logging out
Linux Primer Linux multi user & multi tasking
Linux Primer Where to from here
Linux Primer What is Linux
basic hacking guides using linux tru wuftpd bughole
Linux commands
Linux Command Line in Polski Tabele komend
BASIC MILITARY REQUIREMENTS 2
Editor commands
Some, Any, Every, None
Linux 2000 DVB T Experiments
linux kobiety

więcej podobnych podstron