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