DEV Community

Cover image for Comment with a command line command and explain what it is and how to use it.
Bruno
Bruno

Posted on

Comment with a command line command and explain what it is and how to use it.

Top comments (12)

Collapse
 
vercidium profile image
Vercidium

sudo reboot - fixes all problems, 50% of the time

Collapse
 
brunoj profile image
Bruno

I'll go first with a simple one: cd.

cd stands for "change directory". It accepts a directory as an argument,

i.e.

cd documents
Enter fullscreen mode Exit fullscreen mode

It takes a few other directives such as moving up one directory, moving to root, etc.

Here is a post getting into some of what you can do

Collapse
 
nombrekeff profile image
Keff

sudo rm -rf / - Get fired or reinstall OS

Collapse
 
colonelxy profile image
Harold Oliver πŸ›‘οΈ

hahahahaaaa dead!

Collapse
 
iamadhee profile image
Adheeban Manoharan

🀣🀣

Collapse
 
pirxdanford profile image
Clemens Scholz

sudo command - perform a command as superuser

here are some reasons why not to use it all the time linuxnscripting.com/why-you-should...

here are some best practices of how to set it up properly techglimpse.com/dos-and-donts-of-s...

and here is a somewhat essayish pro/con discussion piece redhat.com/sysadmin/sysadmins-dont...

Collapse
 
code_jedi profile image
Code_Jedi

say
I accidentally discovered that running say <words to say> on my OS makes a voice say those words out loud. For example:
say thats an awfully hot coffee pot

Collapse
 
dumboprogrammer profile image
Tawhid

$ pwd shows current working directory

Collapse
 
moutafatin1 profile image
moutafatin1 • Edited

mv command , you can move file/folder placement with it or you can use it for rename.

mv myFolder destination
mv myFolderCurrentName myFolderNewName

Enter fullscreen mode Exit fullscreen mode
Collapse
 
mistval profile image
Randall
find . -name "*thing*"
Enter fullscreen mode Exit fullscreen mode

Recursively find all files with thing in its name!

Collapse
 
colonelxy profile image
Harold Oliver πŸ›‘οΈ

aws s3 mb s3://dev-community-bucket
Creates an S3 bucket in AWS.
Out of context?

Collapse
 
chaitanyacd99 profile image
Chaitanya Deshpande • Edited

sudo rm -rf /
Just destroy your Linux system easily