User Tools

Site Tools


os_cp:intro:solutions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
os_cp:intro:solutions [2023/02/28 00:20]
jkonczak
os_cp:intro:solutions [2023/03/08 00:20] (current)
jkonczak
Line 20: Line 20:
 |~~#~~|ls /​usr/​share/​zoneinfo/​*/​[FH]*| |~~#~~|ls /​usr/​share/​zoneinfo/​*/​[FH]*|
 |~~#~~|# bash expanded ls* to "ls lsattr lsblk lscpu …" \\ # and then executed "​ls"​ with arguments "​lsattr lsblk lscpu …"| |~~#~~|# bash expanded ls* to "ls lsattr lsblk lscpu …" \\ # and then executed "​ls"​ with arguments "​lsattr lsblk lscpu …"|
-|~~#​28~~|mkdir foo \\ mkdir foo/baz \\ … | 
-|:::| mkdir -p foo/baz/bar foo/bar foobaz/bar| 
-|~~#​~~|rmdir foo/baz/bar \\ rmdir foo/baz| 
-|~~#~~|echo "​foo"​ > file1 \\ ln file1 file2 \\ echo "​bar"​ > file2 \\ cat file1| 
-|~~#~~|cd \\ln -s /tmp TMP \\ cd TMP \\ pwd| 
-|~~#~~|# second column of "ls -l" results| 
-|:::|ln -s /tmp ~/TMP \\ cd ~/TMP \\ pwd| 
-|~~#~~|cd \\ ln -s . loop \\ cd loop \\ cd loop \\ pwd| 
-|~~#~~|ln -s /​nonexistent/​path brokenSymlink \\ ls -l| 
-|~~#~~|cp /​etc/​os-release /​etc/​SUSE-brand .| 
-|~~#37~~|cp -a someDir newDir| 
-|~~#~~|mv newDir someDir| 
-|~~#~~|mv someDir anotherDir| 
-|~~#~~|cp -al anotherDir yetAnotherDir \\ echo "​modified"​ > yetAnotherDir/​file2 \\ tree -D --timefmt=%H:​%M:​%S anotherDir yetAnotherDir \\ # fileów anotherDir/​file2 i yetAnotherDir/​file2| 
-|~~#~~|cd /tmp \\ touch example \\ scp example student@lab-sec-1:​example| 
-|:::|cd /tmp \\ touch example \\ scp example student@lab-sec-1:​| 
-|~~#~~|scp /​tmp/​example student@lab-sec-1:/​tmp| 
-|~~#~~|cd /tmp \\ sftp student@lab-sec-1 \\ <color #​c0c0c0>​sftp></​color>​ cd /tmp \\ <color #​c0c0c0>​sftp></​color>​ put example | 
-|:::|sftp student@lab-sec-1 \\ <color #​c0c0c0>​sftp></​color>​ cd /tmp \\ <color #​c0c0c0>​sftp></​color>​ put /​tmp/​example | 
-|:::|sftp student@lab-sec-1 \\ <color #​c0c0c0>​sftp></​color>​ cd /tmp \\ <color #​c0c0c0>​sftp></​color>​ lcd /tmp \\ <color #​c0c0c0>​sftp></​color>​ put example | 
-|~~#​~~|touch file_{a..z} \\ rm file_? \\ touch file_{a..z} \\ rm -f file_? \\ … | 
-|~~#~~|rm file_? \\ rm -f file_?| 
-|~~#​~~|mkdir someDir \\ rm -r someDir| 
 <​html></​code></​html>​ <​html></​code></​html>​
  
os_cp/intro/solutions.1677540055.txt.gz · Last modified: 2023/02/28 00:20 by jkonczak