questão |
resposta |
começar a aprender
|
|
|
|
|
começar a aprender
|
|
-l long listing (ls -l),-al (ls -al) Listing With Hidden Files
|
|
|
começar a aprender
|
|
grep PATTERN [FILE], grep failed auth. log
|
|
|
começar a aprender
|
|
Forward slashes instead of backward, cd /var/log
|
|
|
começar a aprender
|
|
Safely turn off the computer in software sudo shutdown 2 (turn off in 2min), -r restart, -c cancel or ctrl+c
|
|
|
começar a aprender
|
|
Displays the current working directory path Useful when changing directories often
|
|
|
começar a aprender
|
|
Change a user account password
|
|
|
começar a aprender
|
|
mv first. txt second. txt
|
|
|
cp first. txt second. txt começar a aprender
|
|
|
|
|
começar a aprender
|
|
Remove files or directories Does not remove directories by default, -r (removes directory)
|
|
|
começar a aprender
|
|
|
|
|
r=read, w=write, x=execute começar a aprender
|
|
Change mode of a file system object chmod mode FILE, chmod 744 script. sh
|
|
|
começar a aprender
|
|
Change file owner and group sudo chown [OWNER: GROUP] file, sudo chown professor script. sh
|
|
|
começar a aprender
|
|
View or change wireless network configuration
|
|
|
começar a aprender
|
|
View or configure a network interface and IP Slowly being replaced by ip (ip address)
|
|
|
começar a aprender
|
|
View the current processes ps -e | more (View all processes)
|
|
|
começar a aprender
|
|
Some command require elevated rights There are some things normal users can’t do
|
|
|
começar a aprender
|
|
You continue to be that user until you exit
|
|
|
começar a aprender
|
|
Execute a command as the super user Only that command executes as the super user
|
|
|
começar a aprender
|
|
Advanced Packaging Tool (Install, update, remove) sudo apt-get install wireshark
|
|
|
começar a aprender
|
|
Full screen editing with copy, paste, and more
|
|
|
começar a aprender
|
|
Backup and restore an entire partition dd if=<source file name> of=<target file name> [Options]
|
|
|
começar a aprender
|
|
dd if=/dev/sda of=/tmp/sda-image. img
|
|
|
começar a aprender
|
|
dd if=/tmp/sda-image. img of=/dev/sda
|
|
|
começar a aprender
|
|
|
|
|
começar a aprender
|
|
kill an app with one click
|
|
|