title | layout |
---|---|
Linux |
2017/sheet |
$ chmod +rwx App
$ ./App
$ rm namefile
$ rm -d Directory
$ rm -rf Directory_with_files
$ cp namefile Downloads
$ ls
namefile Desktop Documents Downloads Music Pictures Public Templates Videos
$ cd Downloads
~/Downloads$ ls
namefile
$ touch namefile
$ touch --help
$ cat namefile
$ cat --help
$ mkdir name
$ mkdir --help
$ ls
Desktop Documents Downloads Music Pictures Public Templates Videos
$ ls --help
$ mount -t tmpfs -o size=5G,nr_inodes=5k,mode=700 tmpfs /tmp
sudo visudo
username ALL=(ALL) NOPASSWD:/sbin/restart whatever
df
df -h # human-readable format
df -a # all filesystems
du
du -hsx * | sort -rh | head -10 # largest 10 folders
yes | /your/command