Shell Commands
I - since I spent the time to create this website - am a computer geek. And most computer geeks use the Terminal to customize their machine. So I figured I would share some simple commands with you guys. (There is a default file in your home section, but I’m adding more to it).
ls (list contents)
- -l in rows
- -t chronologically
cd (change directory)
cat (view file)
mv (rename or move file)
- to rename (mv oldname.txt newname.txt)
locate/find (locate/find files)
- if you add -i, it will be more likely to work even if you don’t remember the name exactly
grep (lets you search for a certain word in a text file)
- grep blue notebook.txt is an example
df (reports disk usage in percentage and KB)
- df -m to see in MB
head (shows first lines of text file)
- default is first ten lines, but you can do head -n notebook.txt
tail (same as end, but shows last lines)
diff (compares file contents, and shows differences in columns)
- diff file1.ext file2.ext
chmod (changes read/write/execute permissions of files/directories)
- more info to execute properly, see https://www.hostinger.com/tutorials/linux-commands
chown (give certain file/directory to different user)
- chown linuxuser2 file.ext
jobs (display all current jobs and statuses (tasks))