Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
RHLUG Wiki
Search
Search
Appearance
Log in
Personal tools
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Linux Basics Tutorial
(section)
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Other Useful Bash Commands === The following commands are used for simple operations from the command line: * '''ls''' (or '''l'''i'''s'''t): Lists (non-hidden) files and folders in the working directory, or in a directory given as an argument. It is common to use this with the arguments "l", "a", and "h" to show hidden files, show more details on the files, and print the results in a nicer format: <code>$ ls -lah</code> * '''mkdir''' (or '''m'''a'''k'''e '''dir'''ectory): Creates a new directory in the working directory, with the name given in an argument * '''rm''' (or '''r'''e'''m'''ove): Deletes a file or directory in the working directory. If you are deleting a non-empty directory, you will need to use <code>rm -rf</code> to tell it to delete the entire tree recursively, and force it to delete, even though there are files there. * '''mv''' (or '''m'''o'''v'''e): Moves a file or directory given in the first argument, to the directory given in the second argument. * '''cp''' (or '''c'''o'''p'''y): Copies a file or directory given in the first argument, to the directory given in the second argument. * '''cat''' (or con'''cat'''enate): Prints the contents of a file given in an argument, to the console. * '''echo''': Prints the fully-evaluated form of the argument given. For example, <code>$ echo ~</code> prints the fully-evaulated form of your home directory, which is likely "/home/[your username]"
Summary:
Please note that all contributions to RHLUG Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
RHLUG Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)