
cd .. to go to the parent directory. And to go to the previous directory, you can use the command cd - . This technique is similar to the "Back" button. test@linoxide:~/Downloads$ cd - /home/eyramm test@linoxide:~$ cd - /home/eyramm/Downloads test@linoxide:~/Downloads$ Downloads directory, then moved to the Home directory, and finally returned to the Downloads directory.!! . In this example, we will repeat the previous command with superuser rights. $ apt install vlc E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? $ sudo !! sudo apt install vlc vlc is already the newest version (2.2.2-5ubuntu0.16.04.3). while ! [command]; do sleep 1; done $ while ! ./run.sh; do sleep 1; done cat: run.sh: No such file or directory cat: run.sh: No such file or directory linoxide.com run.sh file is run.sh and its contents are displayed.pv command: $ pv access.log | gzip > access.log.gz 611MB 0:00:11 [58.3MB/s] [=> ] 15% ETA 0:00:59 at command: echo wget https://sample.site/test.mp4 | at 2:00 PM atq command.ls , or anything else that displays data on the screen, you may encounter long lists that require long-term scrolling to view. What is displayed on the screen can easily be organized as a table with the help of the column -t command. For example: $ cat /etc/passwd | column -t 
clear command clears the terminal screen. The key combination Ctrl + L allows you to achieve the same faster.Alt + . key combination Alt + . allows you to navigate through previously entered commands. The key combination Ctrl + U removes from the line everything that is already entered into it. For example, you can try this to clear the password entered on the command line.Ctrl + Rzip command, or, if the files are just very large, you can create a multi-volume archive. If you also need to encrypt the files, use the -e key. $ zip -re test.zip AdbeRdr11010_en_US.exe run.sh Smart_Switch_pc_setup.exe Enter password: Verify password: adding: AdbeRdr11010_en_US.exe (deflated 0%) adding: run.sh (stored 0%) adding: Smart_Switch_pc_setup.exe (deflated 2%) $ cat /dev/urandom > /dev/null $ cp /home/sample.txt{,-old} $ cp /home/sample.txt /home/sample.txt-old $ ls text_comes_here_1.txt text_comes_here_2.txt text_comes_here_3.txt text_comes_here_4.txt $ rename 's/comes_here/goes_there/' *.txt $ ls text_goes_there_1.txt text_goes_there_2.txt text_goes_there_3.txt Source: https://habr.com/ru/post/336060/
All Articles