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