User:Cyrusty/Useful Commands

From Organic Design wiki
< User:Cyrusty
Revision as of 21:29, 23 August 2018 by Cyrusty (talk | contribs)

Useful Commands and Info

ls-al # lists all in current directory
rm -rf FILENAMEHERE # deletes files or directories
chmod +x FILENAME # sets all permissions
mv /FILE/NAME /NEW/LOCATION # moves files
mv /FILE/NAME NEWFILENAMEHERE # renames the file
pwd # prints working directory
top # shows all running processes
kill xxxx # choose the process number to kill the running application
tar xzvf FILENAME # extracts zip files
crontab -e # access boot services
@reboot<TAB> /DESTINATION/OF/FILE/FILENAME # Run a program when rebooting NOTE!! I have to put this in the crontab -e config


ifconfig # shows internet config
whoami # shows current user
ps # shows running processes
sudo nano etc/default/grub # grub info
sudo update-grub # update after making edits to grub
alias NAME="SOMECOMMAND HERE" # creates and alias for a command
chown -R USER:USER FILE/NAME # change all permission
ln -s /PATH/TO/SOMETHING/REAL /usr/local/bin/NAME # makes a file you choose to run by typing an alias